Compare commits
3 Commits
434f874963
...
093f6d9a62
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
093f6d9a62 | ||
|
|
5bf2fc5319 | ||
|
|
33e4b6b9b5 |
@@ -28,6 +28,17 @@ certificatesResolvers:
|
|||||||
httpChallenge:
|
httpChallenge:
|
||||||
entryPoint: web
|
entryPoint: web
|
||||||
|
|
||||||
|
letsencrypt-dns:
|
||||||
|
# DNS challenge for wildcard certificates (*.smoothschedule.com)
|
||||||
|
acme:
|
||||||
|
email: 'admin@smoothschedule.com'
|
||||||
|
storage: /etc/traefik/acme/acme.json
|
||||||
|
dnsChallenge:
|
||||||
|
provider: cloudflare
|
||||||
|
resolvers:
|
||||||
|
- "1.1.1.1:53"
|
||||||
|
- "8.8.8.8:53"
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
# Main domain and www
|
# Main domain and www
|
||||||
@@ -86,7 +97,7 @@ http:
|
|||||||
certResolver: letsencrypt
|
certResolver: letsencrypt
|
||||||
|
|
||||||
# Wildcard subdomain router for tenant subdomains
|
# Wildcard subdomain router for tenant subdomains
|
||||||
# Each subdomain gets its own certificate via HTTP challenge
|
# Uses DNS challenge for wildcard certificate (*.smoothschedule.com)
|
||||||
# Routes to nginx which serves the frontend SPA and proxies /api/ to Django
|
# Routes to nginx which serves the frontend SPA and proxies /api/ to Django
|
||||||
subdomain-router:
|
subdomain-router:
|
||||||
rule: 'HostRegexp(`{subdomain:[a-z0-9-]+}.smoothschedule.com`)'
|
rule: 'HostRegexp(`{subdomain:[a-z0-9-]+}.smoothschedule.com`)'
|
||||||
@@ -96,7 +107,11 @@ http:
|
|||||||
- csrf
|
- csrf
|
||||||
service: nginx
|
service: nginx
|
||||||
tls:
|
tls:
|
||||||
certResolver: letsencrypt
|
certResolver: letsencrypt-dns
|
||||||
|
domains:
|
||||||
|
- main: "smoothschedule.com"
|
||||||
|
sans:
|
||||||
|
- "*.smoothschedule.com"
|
||||||
|
|
||||||
flower-secure-router:
|
flower-secure-router:
|
||||||
rule: 'Host(`smoothschedule.com`)'
|
rule: 'Host(`smoothschedule.com`)'
|
||||||
|
|||||||
@@ -40,11 +40,12 @@ services:
|
|||||||
- django
|
- django
|
||||||
volumes:
|
volumes:
|
||||||
- production_traefik:/etc/traefik/acme
|
- production_traefik:/etc/traefik/acme
|
||||||
|
env_file:
|
||||||
|
- ./.envs/.production/.django
|
||||||
ports:
|
ports:
|
||||||
- '0.0.0.0:80:80'
|
- '0.0.0.0:80:80'
|
||||||
- '0.0.0.0:443:443'
|
- '0.0.0.0:443:443'
|
||||||
- '0.0.0.0:5555:5555'
|
- '0.0.0.0:5555:5555'
|
||||||
- '0.0.0.0:5555:5555'
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user