Strip auth header and update external config

This commit is contained in:
Kris Lamoureux 2022-08-19 00:51:05 -04:00
parent 95f54b7f0a
commit cab6ab2d8e
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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: