diff --git a/.goreleaser.yml b/.goreleaser.yml index 65309fd..1d3c91c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 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 diff --git a/Makefile b/Makefile index 0951519..e9fe7e3 100644 --- a/Makefile +++ b/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 " CONTAINER_BIN_NAME := ${PROJECT_NAME} diff --git a/README.md b/README.md index c881c4c..76c1bcb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cmd/sendmail/main.go b/cmd/sendmail/main.go index dfab1c1..df894b3 100644 --- a/cmd/sendmail/main.go +++ b/cmd/sendmail/main.go @@ -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. diff --git a/cmd/smtp2shoutrrr/main.go b/cmd/smtp2shoutrrr/main.go index 60fe9b5..0d92081 100644 --- a/cmd/smtp2shoutrrr/main.go +++ b/cmd/smtp2shoutrrr/main.go @@ -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" ) diff --git a/go.mod b/go.mod index 34613c8..31d8d3a 100644 --- a/go.mod +++ b/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