Skip to content

Commit

Permalink
Merge pull request #138 from ricardogsilva/hotfix-traefik-integration
Browse files Browse the repository at this point in the history
Fixed errors with staging-related config
  • Loading branch information
ricardogsilva authored Jun 12, 2024
2 parents 8db413a + d917b3d commit 1fe81b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
8 changes: 4 additions & 4 deletions docker/compose.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ name: arpav-ppcv-staging

services:

# NOTE: this traefik instance does not deal with TLS at all, as we assume there
# is another proxy running on top of this one, provided
# by the staging env
reverse-proxy:
command: --configFile /opt/traefik/traefik.toml
volumes:
- type: bind
source: home/arpav/docker/traefik/staging-config.toml
source: /home/arpav/docker/traefik/staging-config.toml
target: /opt/traefik/traefik.toml
- type: bind
source: /opt/traefik/certs
target: /opt/traefik/certs

webapp:
env_file:
Expand Down
16 changes: 3 additions & 13 deletions docker/traefik/staging-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,13 @@
[accessLog]

[entryPoints]
[entryPoints.webSecure]
address = ":443"
[entryPoints.web]
address = ":80"

[entryPoints.webSecure.forwardedHeaders]
[entryPoints.web.forwardedHeaders]
insecure = true

[providers]

[providers.docker]
exposedByDefault = false

[certificatesResolvers.letsEncryptResolver.acme]
email = "[email protected]"
storage = "/opt/traefik/certs/acme.json"

# Default: "https://acme-v02.api.letsencrypt.org/directory"
# the default is the production lets encrypt server
# caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"

[certificatesResolvers.letsEncryptResolver.acme.tlsChallenge]

0 comments on commit 1fe81b2

Please sign in to comment.