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 %}
|
||||
auth_basic "{{ item.restrict_name | default('Restricted Access') }}";
|
||||
auth_basic_user_file {{ item.restrict_file | default('/etc/nginx/.htpasswd') }};
|
||||
proxy_set_header Authorization "";
|
||||
{% endif %}
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
@ -10,10 +10,12 @@ http:
|
||||
{% elif item.middlewares is defined %}
|
||||
middlewares: "{{ item.middlewares }}"
|
||||
{% endif %}
|
||||
{% if traefik_acme_email is defined %}
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
domains:
|
||||
- main: "{{ item.domain }}"
|
||||
{% endif %}
|
||||
entryPoints:
|
||||
- "websecure"
|
||||
services:
|
||||
|
Loading…
Reference in New Issue
Block a user