-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: convert SERVER_ENVIRONMENT + DEPLOYMENT_TYPE to DEPLOYMENT_…
…ENVIRONMENT - No more 'local|remote', only 'dev|staging|prod'
- Loading branch information
1 parent
a3189b2
commit 480222c
Showing
18 changed files
with
160 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
services: | ||
traefik: | ||
volumes: | ||
- "./etc/dev:/etc/traefik" | ||
labels: | ||
- "traefik.http.routers.traefik.entrypoints=web" | ||
|
||
# # require authentication to access the dashboard (uncomment the next lines to enable) | ||
# - "traefik.http.routers.traefik.middlewares=auth" | ||
# | ||
# # use `mkpasswd --method=bcrypt` to convert your password to a bcrypt | ||
# # hash before pasting it here. (make sure to double up any dollar sign | ||
# # symbols ($ -> $$) since the dollar sign symbol is used as an escape | ||
# # character in YAML) | ||
# - "traefik.http.middlewares.auth.basicauth.users=${TRAEFIK_DASHBOARD_CREDENTIALS:-admin:$2b$05$ziXkIFQh5zJHZYsmX1LGluwyTYx4UVT2hz/CkEsjbuxG8kdXTfuUm}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
services: | ||
traefik: | ||
ports: | ||
- "443:443" | ||
volumes: | ||
- "./etc/staging:/etc/traefik" | ||
- "./volumes/letsencrypt:/letsencrypt" | ||
labels: | ||
- "traefik.http.routers.traefik.entrypoints=websecure" | ||
- "traefik.http.routers.traefik.tls.certresolver=letsencrypt" | ||
|
||
# require authentication to access the dashboard (you can comment out the | ||
# next line to disable authentication (not recommended in production!) | ||
- "traefik.http.routers.traefik.middlewares=auth" | ||
|
||
# use `mkpasswd --method=bcrypt` to convert your password to a bcrypt | ||
# hash before pasting it here. (make sure to double up any dollar sign | ||
# symbols ($ -> $$) since the dollar sign symbol is used as an escape | ||
# character in YAML) | ||
- "traefik.http.middlewares.auth.basicauth.users=${TRAEFIK_DASHBOARD_CREDENTIALS:-admin:$2b$05$ziXkIFQh5zJHZYsmX1LGluwyTYx4UVT2hz/CkEsjbuxG8kdXTfuUm}" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,3 @@ providers: | |
entryPoints: | ||
web: | ||
address: ":80" | ||
|
||
pilot: | ||
dashboard: false |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
http: | ||
middlewares: | ||
redirect-non-www-to-www: | ||
redirectregex: | ||
regex: "^https?://(?:www\\.)?(.+)" # also redirects http -> https | ||
replacement: "https://www.${1}" | ||
permanent: true | ||
redirect-www-to-non-www: | ||
redirectregex: | ||
regex: "^https?://www\\.(.+)" # also redirects http -> https | ||
replacement: "https://${1}" | ||
permanent: true | ||
short-analytics-url: | ||
replacepathregex: | ||
regex: "^(.*)/pl.js$$" | ||
replacement: "${1}/plausible.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
global: | ||
sendAnonymousUsage: false | ||
checkNewVersion: false | ||
|
||
api: | ||
dashboard: true | ||
|
||
providers: | ||
docker: | ||
exposedByDefault: false | ||
network: "traefik-global-proxy" | ||
file: | ||
directory: "/etc/traefik" | ||
|
||
entryPoints: | ||
web: | ||
address: ":80" | ||
http: | ||
redirections: | ||
entryPoint: | ||
to: "websecure" | ||
scheme: "https" | ||
websecure: | ||
address: ":443" | ||
|
||
certificatesResolvers: | ||
letsencrypt: | ||
acme: | ||
caServer: https://acme-staging-v02.api.letsencrypt.org/directory | ||
email: "letsencrypt@example.com" | ||
storage: "/letsencrypt/acme.json" | ||
tlsChallenge: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.