chore: migrate to .env variables and update production routing

This commit is contained in:
Bray 2026-04-01 18:00:04 -04:00
parent 655b1b0d92
commit 775b5850f6
2 changed files with 10 additions and 0 deletions

View file

@ -11,6 +11,9 @@ services:
- FORGEJO__database__PASSWD=${FORGEJO_DB_PASS} # From .env
- FORGEJO__metrics__ENABLED=true
- FORGEJO__metrics__TOKEN=${FORGEJO_METRICS_TOKEN} # From .env
- FORGEJO__server__DOMAIN=git.corebot.ca
- FORGEJO__server__SSH_DOMAIN=git.corebot.ca
- FORGEJO__server__ROOT_URL=https://git.corebot.ca/
ports:
- "0.0.0.0:3000:3000"
- "0.0.0.0:2222:22"

View file

@ -7,6 +7,13 @@
# Cloudflare DNS points these to your Public IP (136.112.149.254)
# Caddy will automatically get REAL Let's Encrypt certificates.
git.corebot.ca {
reverse_proxy 100.98.158.31:3000 {
header_up Host {host}
header_up X-Real-IP {remote_host}
}
}
core.corebot.ca {
reverse_proxy 100.80.179.128:9120
}