From 7522c333da4ec7f371faf174ea02c6e2eba400c7 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Thu, 18 Aug 2022 21:53:38 -0400 Subject: [PATCH] Disable Traefik LE resolver and HSTS --- roles/nginx/tasks/main.yml | 4 ++-- roles/traefik/tasks/main.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index f026b86..968b681 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -31,7 +31,7 @@ traefik.http.routers.nginx.rule: "Host(`{{ nginx_domain }}`)" #traefik.http.middlewares.nginxauth.basicauth.users: "{{ nginx_auth }}" traefik.http.routers.nginx.entrypoints: websecure - traefik.http.routers.nginx.tls.certresolver: letsencrypt - traefik.http.routers.nginx.middlewares: "securehttps@file,nginxauth" + #traefik.http.routers.nginx.tls.certresolver: letsencrypt + #traefik.http.routers.nginx.middlewares: "securehttps@file,nginxauth" traefik.docker.network: traefik traefik.enable: "true" diff --git a/roles/traefik/tasks/main.yml b/roles/traefik/tasks/main.yml index a242a92..20dcb22 100644 --- a/roles/traefik/tasks/main.yml +++ b/roles/traefik/tasks/main.yml @@ -42,10 +42,10 @@ - name: traefik labels: traefik.http.routers.traefik.rule: "Host(`{{ traefik_domain }}`)" - traefik.http.middlewares.auth.basicauth.users: "{{ traefik_auth }}" - traefik.http.middlewares.localonly.ipwhitelist.sourcerange: "{{ traefik_localonly }}" - traefik.http.routers.traefik.tls.certresolver: letsencrypt - traefik.http.routers.traefik.middlewares: "securehttps@file,auth@docker,localonly" + #traefik.http.middlewares.auth.basicauth.users: "{{ traefik_auth }}" + #traefik.http.middlewares.localonly.ipwhitelist.sourcerange: "{{ traefik_localonly }}" + #traefik.http.routers.traefik.tls.certresolver: letsencrypt + #traefik.http.routers.traefik.middlewares: "securehttps@file,auth@docker,localonly" traefik.http.routers.traefik.service: "api@internal" traefik.http.routers.traefik.entrypoints: websecure traefik.http.routers.traefik.tls: "true"