Compare commits
3 Commits
85a6c3894a
...
7522c333da
Author | SHA1 | Date | |
---|---|---|---|
7522c333da | |||
344b79e97f | |||
e4fed78193 |
@ -29,9 +29,9 @@
|
|||||||
- "{{ nginx_html }}:/usr/share/nginx/html:ro"
|
- "{{ nginx_html }}:/usr/share/nginx/html:ro"
|
||||||
labels:
|
labels:
|
||||||
traefik.http.routers.nginx.rule: "Host(`{{ nginx_domain }}`)"
|
traefik.http.routers.nginx.rule: "Host(`{{ nginx_domain }}`)"
|
||||||
traefik.http.middlewares.nginxauth.basicauth.users: "{{ nginx_auth }}"
|
#traefik.http.middlewares.nginxauth.basicauth.users: "{{ nginx_auth }}"
|
||||||
traefik.http.routers.nginx.entrypoints: websecure
|
traefik.http.routers.nginx.entrypoints: websecure
|
||||||
traefik.http.routers.nginx.tls.certresolver: letsencrypt
|
#traefik.http.routers.nginx.tls.certresolver: letsencrypt
|
||||||
traefik.http.routers.nginx.middlewares: "securehttps@file,nginxauth"
|
#traefik.http.routers.nginx.middlewares: "securehttps@file,nginxauth"
|
||||||
traefik.docker.network: traefik
|
traefik.docker.network: traefik
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
|
@ -78,7 +78,9 @@
|
|||||||
--email "{{ proxy.dns_cloudflare.email }}" \
|
--email "{{ proxy.dns_cloudflare.email }}" \
|
||||||
--dns-cloudflare \
|
--dns-cloudflare \
|
||||||
--dns-cloudflare-credentials /root/.cloudflare.ini \
|
--dns-cloudflare-credentials /root/.cloudflare.ini \
|
||||||
-d "*.{{ item }}" {{ proxy.dns_cloudflare.opts | default("") }}'
|
-d "*.{{ item }}" \
|
||||||
|
-d "{{ item }}" \
|
||||||
|
{{ proxy.dns_cloudflare.opts | default("") }}'
|
||||||
args:
|
args:
|
||||||
creates: "/etc/letsencrypt/live/{{ item }}/fullchain.pem"
|
creates: "/etc/letsencrypt/live/{{ item }}/fullchain.pem"
|
||||||
loop: "{{ proxy.dns_cloudflare.wildcard_domains }}"
|
loop: "{{ proxy.dns_cloudflare.wildcard_domains }}"
|
||||||
|
@ -42,10 +42,10 @@
|
|||||||
- name: traefik
|
- name: traefik
|
||||||
labels:
|
labels:
|
||||||
traefik.http.routers.traefik.rule: "Host(`{{ traefik_domain }}`)"
|
traefik.http.routers.traefik.rule: "Host(`{{ traefik_domain }}`)"
|
||||||
traefik.http.middlewares.auth.basicauth.users: "{{ traefik_auth }}"
|
#traefik.http.middlewares.auth.basicauth.users: "{{ traefik_auth }}"
|
||||||
traefik.http.middlewares.localonly.ipwhitelist.sourcerange: "{{ traefik_localonly }}"
|
#traefik.http.middlewares.localonly.ipwhitelist.sourcerange: "{{ traefik_localonly }}"
|
||||||
traefik.http.routers.traefik.tls.certresolver: letsencrypt
|
#traefik.http.routers.traefik.tls.certresolver: letsencrypt
|
||||||
traefik.http.routers.traefik.middlewares: "securehttps@file,auth@docker,localonly"
|
#traefik.http.routers.traefik.middlewares: "securehttps@file,auth@docker,localonly"
|
||||||
traefik.http.routers.traefik.service: "api@internal"
|
traefik.http.routers.traefik.service: "api@internal"
|
||||||
traefik.http.routers.traefik.entrypoints: websecure
|
traefik.http.routers.traefik.entrypoints: websecure
|
||||||
traefik.http.routers.traefik.tls: "true"
|
traefik.http.routers.traefik.tls: "true"
|
||||||
|
Loading…
Reference in New Issue
Block a user