update traefik configuration and fix directory naming in update script
This commit is contained in:
parent
27b9ff262a
commit
a61bcb486c
2 changed files with 31 additions and 12 deletions
|
|
@ -1,24 +1,43 @@
|
||||||
api:
|
api:
|
||||||
dashboard: true
|
dashboard: true
|
||||||
insecure: true # Zetten we uit zodra Authentik werkt
|
insecure: true # Zetten we UIT zodra je via https://traefik.stackbabber.nl kan
|
||||||
|
|
||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
|
# Dwing iedereen automatisch naar HTTPS
|
||||||
|
http:
|
||||||
|
redirections:
|
||||||
|
entryPoint:
|
||||||
|
to: websecure
|
||||||
|
scheme: https
|
||||||
|
|
||||||
websecure:
|
websecure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
|
# Gebruik standaard de Let's Encrypt resolver voor HTTPS
|
||||||
|
http:
|
||||||
|
tls:
|
||||||
|
certResolver: letsencrypt
|
||||||
|
domains:
|
||||||
|
- main: "stackbabber.nl"
|
||||||
|
sans:
|
||||||
|
- "*.stackbabber.nl"
|
||||||
|
|
||||||
|
# Hier regelen we het certificaat
|
||||||
|
certificatesResolvers:
|
||||||
|
letsencrypt:
|
||||||
|
acme:
|
||||||
|
email: csteenbergen@stackbabber.nl # <--- PAS DIT AAN!
|
||||||
|
storage: acme.json
|
||||||
|
# We gebruiken DNS challenge (beste methode)
|
||||||
|
dnsChallenge:
|
||||||
|
provider: cloudflare
|
||||||
|
resolvers:
|
||||||
|
- "1.1.1.1:53"
|
||||||
|
- "8.8.8.8:53"
|
||||||
|
|
||||||
providers:
|
providers:
|
||||||
docker:
|
docker:
|
||||||
endpoint: "unix:///var/run/docker.sock"
|
endpoint: "unix:///var/run/docker.sock"
|
||||||
exposedByDefault: false
|
exposedByDefault: false
|
||||||
network: proxy
|
network: proxy
|
||||||
|
|
||||||
# We bereiden SSL alvast voor (staat nog even uit tot je een domein hebt)
|
|
||||||
# certificatesResolvers:
|
|
||||||
# letsencrypt:
|
|
||||||
# acme:
|
|
||||||
# email: jouw@email.com
|
|
||||||
# storage: acme.json
|
|
||||||
# httpChallenge:
|
|
||||||
# entryPoint: web
|
|
||||||
|
|
@ -16,7 +16,7 @@ NC='\033[0m' # No Color
|
||||||
SCRIPT_PATH=$(readlink -f "$0")
|
SCRIPT_PATH=$(readlink -f "$0")
|
||||||
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
|
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
|
||||||
REPO_DIR=$(dirname "$SCRIPT_DIR")
|
REPO_DIR=$(dirname "$SCRIPT_DIR")
|
||||||
STACKS_DIR="$REPO_DIR/1. Docker-Stacks"
|
STACKS_DIR="$REPO_DIR/1. docker-stacks"
|
||||||
|
|
||||||
echo -e "${BLUE}==========================================${NC}"
|
echo -e "${BLUE}==========================================${NC}"
|
||||||
echo -e "${BLUE}🚀 Start Docker Update Script - $(date)${NC}"
|
echo -e "${BLUE}🚀 Start Docker Update Script - $(date)${NC}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue