Strip auth header and update external config
This commit is contained in:
parent
95f54b7f0a
commit
cab6ab2d8e
@ -31,6 +31,7 @@ server {
|
|||||||
{% if item.restrict is defined and item.restrict %}
|
{% if item.restrict is defined and item.restrict %}
|
||||||
auth_basic "{{ item.restrict_name | default('Restricted Access') }}";
|
auth_basic "{{ item.restrict_name | default('Restricted Access') }}";
|
||||||
auth_basic_user_file {{ item.restrict_file | default('/etc/nginx/.htpasswd') }};
|
auth_basic_user_file {{ item.restrict_file | default('/etc/nginx/.htpasswd') }};
|
||||||
|
proxy_set_header Authorization "";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
@ -10,10 +10,12 @@ http:
|
|||||||
{% elif item.middlewares is defined %}
|
{% elif item.middlewares is defined %}
|
||||||
middlewares: "{{ item.middlewares }}"
|
middlewares: "{{ item.middlewares }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if traefik_acme_email is defined %}
|
||||||
tls:
|
tls:
|
||||||
certResolver: letsencrypt
|
certResolver: letsencrypt
|
||||||
domains:
|
domains:
|
||||||
- main: "{{ item.domain }}"
|
- main: "{{ item.domain }}"
|
||||||
|
{% endif %}
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- "websecure"
|
- "websecure"
|
||||||
services:
|
services:
|
||||||
|
Loading…
Reference in New Issue
Block a user