Skip to content

Commit

Permalink
Merge pull request #51 from aleksasiriski/as/fix/docker-compose-domain
Browse files Browse the repository at this point in the history
fix(prod): DOMAIN env var for Host and TLS cert
  • Loading branch information
aleksasiriski authored Dec 15, 2024
2 parents 245c299 + 8f1bef2 commit b23536b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
MIGRATIONS_PATH="./drizzle"

BOUNCER_KEY_TRAEFIK=changemebeacauseimasecret
DOMAIN=localhost

ORIGIN=http://localhost:3000
DATABASE_URL=postgres://root:mysecretpassword@localhost:5432/local
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- '--entrypoints.web.http.redirections.entrypoint.to=websecure'
- '--entrypoints.web.http.redirections.entrypoint.scheme=https'
- '--entrypoints.websecure.address=:443'
- '--certificatesresolvers.letsencrypt.acme.email=cert@evidencija.app' # Replace with your domain
- '--certificatesresolvers.letsencrypt.acme.email=cert@${DOMAIN}'
- '--certificatesresolvers.letsencrypt.acme.storage=acme/acme.json'
- '--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web'
- '--experimental.plugins.bouncer.modulename=github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin'
Expand Down Expand Up @@ -57,7 +57,7 @@ services:
- internal
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.app.rule=Host(`evidencija.app`)' # Replace with your domain
- 'traefik.http.routers.app.rule=Host(`${DOMAIN}`)'
- 'traefik.http.routers.app.middlewares=crowdsec@docker'
- 'traefik.http.middlewares.crowdsec.plugin.bouncer.enabled=true'
- 'traefik.http.middlewares.crowdsec.plugin.bouncer.crowdsecmode=stream'
Expand Down

0 comments on commit b23536b

Please sign in to comment.