Revert "refactor: change base url to codeberg.org"
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				ci/woodpecker/push/ci Pipeline failed
				
			
		
			
				
	
				CI / test (push) Has been cancelled
				
					
					
				
			
		
			
				
	
				Release / release (push) Has been cancelled
				
					
					
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	ci/woodpecker/push/ci Pipeline failed
				
			CI / test (push) Has been cancelled
				Release / release (push) Has been cancelled
				This reverts commit a15223a5c2.
			
			
This commit is contained in:
		
							parent
							
								
									7c588033c9
								
							
						
					
					
						commit
						98f7448d49
					
				
					 6 changed files with 18 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -1,8 +1,8 @@
 | 
			
		|||
version: 2
 | 
			
		||||
 | 
			
		||||
gitea_urls:
 | 
			
		||||
  api: https://codeberg.org/api/v1
 | 
			
		||||
  download: https://codeberg.org
 | 
			
		||||
  api: https://git.nakama.town/api/v1
 | 
			
		||||
  download: https://git.nakama.town
 | 
			
		||||
 | 
			
		||||
before:
 | 
			
		||||
  hooks:
 | 
			
		||||
| 
						 | 
				
			
			@ -51,7 +51,7 @@ archives:
 | 
			
		|||
 | 
			
		||||
dockers:
 | 
			
		||||
- image_templates:
 | 
			
		||||
    - &amd64_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-amd64"
 | 
			
		||||
    - &amd64_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-amd64"
 | 
			
		||||
  use: buildx
 | 
			
		||||
  dockerfile: &dockerfile Containerfile
 | 
			
		||||
  goos: linux
 | 
			
		||||
| 
						 | 
				
			
			@ -60,7 +60,7 @@ dockers:
 | 
			
		|||
    - "--pull"
 | 
			
		||||
    - "--platform=linux/amd64"
 | 
			
		||||
- image_templates:
 | 
			
		||||
    - &arm64_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-arm64"
 | 
			
		||||
    - &arm64_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-arm64"
 | 
			
		||||
  use: buildx
 | 
			
		||||
  dockerfile:  *dockerfile
 | 
			
		||||
  goos: linux
 | 
			
		||||
| 
						 | 
				
			
			@ -69,7 +69,7 @@ dockers:
 | 
			
		|||
    - "--pull"
 | 
			
		||||
    - "--platform=linux/arm64"
 | 
			
		||||
- image_templates:
 | 
			
		||||
    - &armv7_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-armv7"
 | 
			
		||||
    - &armv7_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-armv7"
 | 
			
		||||
  use: buildx
 | 
			
		||||
  dockerfile: *dockerfile
 | 
			
		||||
  goos: linux
 | 
			
		||||
| 
						 | 
				
			
			@ -80,12 +80,12 @@ dockers:
 | 
			
		|||
    - "--platform=linux/arm/v7"
 | 
			
		||||
 | 
			
		||||
docker_manifests:
 | 
			
		||||
  - name_template: "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}"
 | 
			
		||||
  - name_template: "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}"
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - *amd64_image
 | 
			
		||||
      - *arm64_image
 | 
			
		||||
      - *armv7_image
 | 
			
		||||
  # - name_template: "codeberg.org/fmartingr/smtp2shoutrrr:latest"
 | 
			
		||||
  # - name_template: "git.nakama.town/fmartingr/smtp2shoutrrr:latest"
 | 
			
		||||
  #   image_templates:
 | 
			
		||||
  #     - *amd64_image
 | 
			
		||||
  #     - *arm64_image
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +94,7 @@ docker_manifests:
 | 
			
		|||
nfpms:
 | 
			
		||||
  - maintainer: Felipe Martin <me@fmartingr.com>
 | 
			
		||||
    description: SMTP server to forward messages to shoutrrr endpoints
 | 
			
		||||
    homepage: https://codeberg.org/fmartingr/smtp2shoutrrr
 | 
			
		||||
    homepage: https://git.nakama.town/fmartingr/smtp2shoutrrr
 | 
			
		||||
    license: AGPL-3.0
 | 
			
		||||
    formats:
 | 
			
		||||
    - deb
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -16,7 +16,7 @@ FROM_MAKEFILE := y
 | 
			
		|||
 | 
			
		||||
CONTAINERFILE_NAME := Containerfile
 | 
			
		||||
CONTAINER_ALPINE_VERSION := 3.20
 | 
			
		||||
CONTAINER_SOURCE_URL := "https://codeberg.org/fmartingr/${PROJECT_NAME}"
 | 
			
		||||
CONTAINER_SOURCE_URL := "https://git.nakama.town/fmartingr/${PROJECT_NAME}"
 | 
			
		||||
CONTAINER_MAINTAINER := "Felipe Martin <me@fmartingr.com>"
 | 
			
		||||
CONTAINER_BIN_NAME := ${PROJECT_NAME}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
# smtp2shoutrrr
 | 
			
		||||
# smtp2Shoutrrr
 | 
			
		||||
 | 
			
		||||
A simple SMTP server that forwards incoming emails to a [Shoutrrr supported service](https://containrrr.dev/shoutrrr/).
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -33,13 +33,13 @@ Target = "ntfy://ntfy.sh/catch-all-topic?tags=unmatched"
 | 
			
		|||
 | 
			
		||||
### From releases
 | 
			
		||||
 | 
			
		||||
- Grab the latest release from the [releases page](https://codeberg.org/fmartingr/smtp2shoutrrr/releases)
 | 
			
		||||
- Grab the latest release from the [releases page](https://git.nakama.town/fmartingr/smtp2shoutrrr/releases)
 | 
			
		||||
- Put the configuration file in the same directory as the binary
 | 
			
		||||
- Run the binary for your appropriate platform
 | 
			
		||||
 | 
			
		||||
### From source (development)
 | 
			
		||||
 | 
			
		||||
- Clone [this repository](https://codeberg.org/fmartingr/smtp2shoutrrr)
 | 
			
		||||
- Clone [this repository](https://git.nakama.town/fmartingr/smtp2shoutrrr)
 | 
			
		||||
- Put the configuration file in the repository folder
 | 
			
		||||
- Run `make quick-run`
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -51,7 +51,7 @@ Target = "ntfy://ntfy.sh/catch-all-topic?tags=unmatched"
 | 
			
		|||
```bash
 | 
			
		||||
docker run -v /path/to/config.toml:/config.toml \
 | 
			
		||||
    -p 11025:11025 \
 | 
			
		||||
    codeberg.org/fmartingr/smtp2shoutrrr:latest
 | 
			
		||||
    git.nakama.town/fmartingr/smtp2shoutrrr:latest
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Development
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,7 @@ import (
 | 
			
		|||
	"git.nakama.town/fmartingr/gotoolkit/encoding"
 | 
			
		||||
	"github.com/emersion/go-sasl"
 | 
			
		||||
 | 
			
		||||
	"codeberg.org/fmartingr/smtp2shoutrrr"
 | 
			
		||||
	"git.nakama.town/fmartingr/smtp2shoutrrr"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// The ANONYMOUS mechanism name.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,10 +5,10 @@ import (
 | 
			
		|||
	"log/slog"
 | 
			
		||||
	"os"
 | 
			
		||||
 | 
			
		||||
	"codeberg.org/fmartingr/smtp2shoutrrr"
 | 
			
		||||
	"git.nakama.town/fmartingr/gotoolkit/encoding"
 | 
			
		||||
	"git.nakama.town/fmartingr/gotoolkit/model"
 | 
			
		||||
	"git.nakama.town/fmartingr/gotoolkit/service"
 | 
			
		||||
	"git.nakama.town/fmartingr/smtp2shoutrrr"
 | 
			
		||||
 | 
			
		||||
	_ "golang.org/x/crypto/x509roots/fallback"
 | 
			
		||||
)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								go.mod
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								go.mod
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
module codeberg.org/fmartingr/smtp2shoutrrr
 | 
			
		||||
module git.nakama.town/fmartingr/smtp2shoutrrr
 | 
			
		||||
 | 
			
		||||
go 1.24
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -30,3 +30,5 @@ require (
 | 
			
		|||
	gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
 | 
			
		||||
	gopkg.in/yaml.v3 v3.0.1 // indirect
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
//replace git.nakama.town/fmartingr/gotoolkit => ../gotoolkit
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue