Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bdc4c90705 | ||
|
|
b309e5fa4a | ||
|
|
a6127703e9 |
@@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
SECRET_KEY = 'b8fi9=f-qj=@-#1iru34-f@a6pzfysgrf(1n_&d=ur%!1w$q*w'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
DEBUG = True if os.getenv("DEBUG") == "True" else False
|
||||
|
||||
ALLOWED_HOSTS = ["localhost", "test.ducoterra.net"]
|
||||
|
||||
|
||||
@@ -15,4 +15,40 @@ spec:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: test
|
||||
servicePort: 8000
|
||||
servicePort: 8000
|
||||
|
||||
---
|
||||
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: test-external-tls
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: letsencrypt
|
||||
routes:
|
||||
- match: Host(`test.ducoterra.net`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: test
|
||||
port: 8000
|
||||
|
||||
---
|
||||
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: test-external-web
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- match: Host(`test.ducoterra.net`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: test
|
||||
port: 8000
|
||||
middlewares:
|
||||
- name: httpsredirect
|
||||
Reference in New Issue
Block a user