Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
fix: osm entrypoint server_url for emails
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Apr 28, 2024
1 parent 6de2896 commit deae6ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osm-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ kill -TERM $(cat /tmp/pids/server.pid)
# The id_application var is for ID editor
sed -i "s/#id_application: \"\"/id_application: \"${ID_EDITOR_CLIENT_ID}\"/" /app/config/settings.yml
sed -i "s/server_protocol: \"http\"/server_protocol: \"${PROTOCOL}\"/" /app/config/settings.yml
sed -i "s/server_url: \"https:\/\/www.openstreetmap.org\"/server_url: \"${DOMAIN}\"/" /app/config/settings.yml
sed -i "s/server_url: \"openstreetmap.example.com\"/server_url: \"${DOMAIN}\"/" /app/config/settings.yml
# SMTP settings
sed -i "s/smtp_address: \"localhost\"/smtp_address: \"mail\"/" /app/config/settings.yml
sed -i "s/smtp_domain: \"localhost\"/smtp_domain: \"${DOMAIN}\"/" /app/config/settings.yml
sed -i "s/email_from: \"OpenStreetMap <[email protected]>\"/email_from: \"OSM Dev <admin@${DOMAIN}>\"/" /app/config/settings.yml
sed -i "s/email_return_path: \"[email protected]\"/email_return_path: \"admin@${DOMAIN}\"/" /app/config/settings.yml
sed -i "s/email_from: \"OpenStreetMap <[email protected]>\"/email_from: \"HOTOSM Sandbox <no-reply@${DOMAIN}>\"/" /app/config/settings.yml
sed -i "s/email_return_path: \"[email protected]\"/email_return_path: \"no-reply@${DOMAIN}\"/" /app/config/settings.yml

# Set exec to replace shell with the command passed as arguments
exec "$@"

0 comments on commit deae6ad

Please sign in to comment.