Attempt to disable Letsencrypt for self-signed joy

This commit is contained in:
3wc 2021-04-17 23:03:30 +02:00
parent c5304ee82b
commit 752d84e337
4 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@ TYPE=traefik
DOMAIN=traefik.example.com DOMAIN=traefik.example.com
LETS_ENCRYPT_ENV=production LETS_ENCRYPT_ENV=production
LETS_ENCRYPT_DISABLED=0
LETS_ENCRYPT_EMAIL=certs@example.com LETS_ENCRYPT_EMAIL=certs@example.com
# DASHBOARD_ENABLED=true # DASHBOARD_ENABLED=true
# WARN, INFO etc. # WARN, INFO etc.

View File

@ -1,2 +1,2 @@
export TRAEFIK_YML_VERSION=v5 export TRAEFIK_YML_VERSION=v7
export FILE_PROVIDER_YML_VERSION=v1 export FILE_PROVIDER_YML_VERSION=v1

View File

@ -19,6 +19,8 @@ services:
- proxy - proxy
environment: environment:
- DASHBOARD_ENABLED - DASHBOARD_ENABLED
- LETS_ENCRYPT_DISABLED
- LETS_ENCRYPT_EMAIL
- FOODSOFT_SMTP_ENABLED - FOODSOFT_SMTP_ENABLED
- GITEA_SSH_ENABLED - GITEA_SSH_ENABLED
- LOG_LEVEL - LOG_LEVEL
@ -38,7 +40,7 @@ services:
- "traefik.http.services.traefik.loadbalancer.server.port=web" - "traefik.http.services.traefik.loadbalancer.server.port=web"
- "traefik.http.routers.traefik.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.traefik.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.traefik.entrypoints=web-secure" - "traefik.http.routers.traefik.entrypoints=web-secure"
- "traefik.http.routers.traefik.tls.certresolver=${LETS_ENCRYPT_ENV}" #- "traefik.http.routers.traefik.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.traefik.tls.options=default@file" - "traefik.http.routers.traefik.tls.options=default@file"
- "traefik.http.routers.traefik.service=api@internal" - "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.middlewares=security@file" - "traefik.http.routers.traefik.middlewares=security@file"

View File

@ -40,6 +40,7 @@ entrypoints:
ping: ping:
entryPoint: web entryPoint: web
{{ if not (eq (env "LETS_ENCRYPT_DISABLED") "1") }}
certificatesResolvers: certificatesResolvers:
staging: staging:
acme: acme:
@ -54,3 +55,4 @@ certificatesResolvers:
storage: /etc/letsencrypt/production-acme.json storage: /etc/letsencrypt/production-acme.json
httpChallenge: httpChallenge:
entryPoint: web entryPoint: web
{{ end }}