* feat: add configurable SMTP HELO hostname Allow the SMTP HELO/EHLO hostname to be configured separately from the SMTP server hostname. This is useful when the SMTP server requires clients to identify themselves with a fully qualified hostname different from the server address. * chore: remove vendored dependency changes * Bump go-pkgz/notify to v1.4.0 and document SMTP_HELO_HOST The HELOHost field lands in go-pkgz/notify v1.4.0, so the branch needs the bump to compile; v1.3.0 in master has no such field. The example module is tidied alongside, as any change to backend/go.mod requires. Documents the parameter in the parameters table and, separately, in the email setup page: what it does, that leaving it unset keeps the previous `localhost` greeting, and the case it exists for, a relay refusing the greeting under Postfix `reject_non_fqdn_helo_hostname`. Also records the current limit: verification emails for email authentication go through go-pkgz/auth's own sender, which has no equivalent setting, so the greeting there is unchanged. * Bump go-pkgz/auth to v2.2.0 and apply SMTP_HELO_HOST to verification email The verification email sender had no way to set the greeting, so a relay that refuses the HELO would accept notifications and still reject sign-in emails. EmailParams gains HELOHost in go-pkgz/auth v2.2.0, so the same SMTP_HELO_HOST now drives both paths. The example module is tidied alongside, as any change to backend/go.mod requires. --------- Co-authored-by: oli <someone@somewhere.tld> Co-authored-by: Dmitry Verkhoturov <paskal.07@gmail.com>
75 lines
2.0 KiB
YAML
75 lines
2.0 KiB
YAML
# compose file for local development
|
|
# starts backend on 8080 with basic auth "dev:password" and Dev oauth2 provider on port 8084
|
|
# UI on http://127.0.0.1:8080/web
|
|
#
|
|
# build remark42 docker image - docker compose -f compose-dev-backend.yml build
|
|
# start remark42 service - docker compose -f compose-dev-backend.yml up
|
|
|
|
services:
|
|
remark42:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- SKIP_BACKEND_TEST
|
|
- BACKEND_TEST_TIMEOUT
|
|
- SKIP_FRONTEND_TEST=true
|
|
- CI
|
|
- GITHUB_REF
|
|
- GITHUB_SHA
|
|
image: ghcr.io/umputun/remark42:dev
|
|
container_name: "remark42-dev"
|
|
hostname: "remark42-dev"
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "5"
|
|
|
|
ports:
|
|
- "8080:8080" # primary rest server
|
|
- "8084:8084" # local oauth2 server
|
|
|
|
environment:
|
|
# - APP_UID=1000
|
|
# - TIME_ZONE=GMT
|
|
# REMARK_URL below would be used for the dev auth,
|
|
# so that it would work on http://127.0.0.1 but wouldn't on http://localhost
|
|
- REMARK_URL=http://127.0.0.1:8080
|
|
- SECRET=12345
|
|
- DEBUG=true
|
|
- ADMIN_PASSWD=password
|
|
- AUTH_DEV=true # activate local OAuth "dev" on REMARK_URL hostname
|
|
- ADMIN_SHARED_ID=dev_user # set admin flag for default user on local oauth2
|
|
- NOTIFY_USERS
|
|
- NOTIFY_ADMINS
|
|
- TELEGRAM_TOKEN
|
|
- NOTIFY_TELEGRAM_CHAN
|
|
- NOTIFY_EMAIL_FROM
|
|
- ADMIN_SHARED_EMAIL
|
|
- SMTP_HOST
|
|
- SMTP_HELO_HOST
|
|
- SMTP_USERNAME
|
|
- SMTP_PASSWORD
|
|
- SMTP_PORT
|
|
- SMTP_TLS
|
|
- EMOJI=true
|
|
- ANON_VOTE=true
|
|
- VOTES_IP=true
|
|
- AUTH_EMAIL_ENABLE=true
|
|
- AUTH_TELEGRAM=true
|
|
- AUTH_ANON=true
|
|
- AUTH_GOOGLE_CID=1111
|
|
- AUTH_GOOGLE_CSEC=1111
|
|
- AUTH_GITHUB_CID=1111
|
|
- AUTH_GITHUB_CSEC=1111
|
|
- AUTH_FACEBOOK_CID=1111
|
|
- AUTH_FACEBOOK_CSEC=1111
|
|
- AUTH_PATREON_CID=1111
|
|
- AUTH_PATREON_CSEC=1111
|
|
- AUTH_DISCORD_CID=1111
|
|
- AUTH_DISCORD_CSEC=1111
|
|
volumes:
|
|
- ./var:/srv/var
|