Enable Cloudflare in Traefik
This commit is contained in:
parent
266df28db8
commit
9564a70313
|
@ -6,6 +6,9 @@ PORTAINER_ADMIN_PASSWORD=h4ckMePleAse
|
||||||
PGID=1000
|
PGID=1000
|
||||||
PUID=1000
|
PUID=1000
|
||||||
|
|
||||||
|
CLOUDFLARE_EMAIL=your@email.com
|
||||||
|
CLOUDFLARE_API_KEY=your_cloudflare_api_key
|
||||||
|
|
||||||
# Nextcloud
|
# Nextcloud
|
||||||
NEXTCLOUD_ADMIN_USER=admin
|
NEXTCLOUD_ADMIN_USER=admin
|
||||||
NEXTCLOUD_ADMIN_PASSWORD=nextcloud_admin_password
|
NEXTCLOUD_ADMIN_PASSWORD=nextcloud_admin_password
|
||||||
|
|
|
@ -12,6 +12,9 @@ services:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
#- "8080:8080"
|
#- "8080:8080"
|
||||||
|
environment:
|
||||||
|
- CF_API_EMAIL=${CLOUDFLARE_EMAIL}
|
||||||
|
- CF_API_KEY=${CLOUDFLARE_API_KEY}
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./traefik.toml:/traefik.toml
|
- ./traefik.toml:/traefik.toml
|
||||||
|
|
|
@ -24,8 +24,11 @@ storage = "acme.json"
|
||||||
entryPoint = "https"
|
entryPoint = "https"
|
||||||
onHostRule = true
|
onHostRule = true
|
||||||
acmeLogging = true
|
acmeLogging = true
|
||||||
[acme.httpChallenge]
|
[acme.dnsChallenge]
|
||||||
entryPoint = "http"
|
dnsProvider = "cloudflare"
|
||||||
|
delayBeforeCheck = 300
|
||||||
|
#[acme.httpChallenge]
|
||||||
|
#entryPoint = "http"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Web configuration backend
|
# Web configuration backend
|
||||||
|
|
|
@ -11,7 +11,7 @@ hostname="example.com"
|
||||||
username="bob"
|
username="bob"
|
||||||
|
|
||||||
# Plex container name for WebTools IP fetching
|
# Plex container name for WebTools IP fetching
|
||||||
container="seedbox_plex_1"
|
container="plex"
|
||||||
|
|
||||||
# Port for WebTools on the container
|
# Port for WebTools on the container
|
||||||
port=33442
|
port=33442
|
||||||
|
|
Loading…
Reference in New Issue