Skip to content

Commit

Permalink
Merge pull request #1539 from akvo/feature/1533-self-host
Browse files Browse the repository at this point in the history
[#1533] Fix webdomain env variable for Traefik
  • Loading branch information
ifirmawan authored Jul 16, 2024
2 parents 9abbbb9 + 0f8b146 commit 9c6a8c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/app.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEBUG="False"
DJANGO_SECRET=<<your Django secret key>>
MAILJET_APIKEY=<<your mailjet api key from mailjet portal>>
MAILJET_SECRET=<<your mailjet api secret from mailjet portal>>
WEBDOMAIN=<<your exposed domain url>>
WEBDOMAIN=<<your exposed domain url, keep on https:// format>>
APK_UPLOAD_SECRET=<<your apk upload secret>>
STORAGE_PATH="./storage"
SENTRY_DSN="<<your sentry DSN for BACKEND>>"
Expand Down
4 changes: 4 additions & 0 deletions deploy/generate_dynamic_config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh

# Remove 'https://' from WEBDOMAIN if present
WEBDOMAIN=${WEBDOMAIN#https://}

cat << EOF > /traefik-config/dynamic.yml
http:
routers:
Expand Down

0 comments on commit 9c6a8c2

Please sign in to comment.