mirror of
https://github.com/linuxserver/docker-swag.git
synced 2025-01-11 07:19:36 -05:00
Remove authelia site-conf
A proxy-conf is already included
This commit is contained in:
parent
0d92109b68
commit
9e7ef6154d
@ -1,32 +0,0 @@
|
|||||||
## Version 2023/02/01 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/authelia.conf.sample
|
|
||||||
# make sure that your dns has a cname set for authelia
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
listen [::]:443 ssl;
|
|
||||||
|
|
||||||
server_name authelia.*;
|
|
||||||
|
|
||||||
include /config/nginx/ssl.conf;
|
|
||||||
|
|
||||||
client_max_body_size 0;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
include /config/nginx/proxy.conf;
|
|
||||||
include /config/nginx/resolver.conf;
|
|
||||||
set $upstream_app authelia;
|
|
||||||
set $upstream_port 9091;
|
|
||||||
set $upstream_proto http;
|
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ (/authelia)?/api/verify {
|
|
||||||
include /config/nginx/resolver.conf;
|
|
||||||
set $upstream_app authelia;
|
|
||||||
set $upstream_port 9091;
|
|
||||||
set $upstream_proto http;
|
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -13,9 +13,6 @@ fi
|
|||||||
if [[ ! -f /config/nginx/authelia-server.conf ]]; then
|
if [[ ! -f /config/nginx/authelia-server.conf ]]; then
|
||||||
cp /defaults/nginx/authelia-server.conf.sample /config/nginx/authelia-server.conf
|
cp /defaults/nginx/authelia-server.conf.sample /config/nginx/authelia-server.conf
|
||||||
fi
|
fi
|
||||||
if [[ ! -f /config/nginx/site-confs/authelia.conf ]]; then
|
|
||||||
cp /defaults/nginx/site-confs/authelia.conf.sample /config/nginx/site-confs/authelia.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
# copy old ldap config file to new location
|
# copy old ldap config file to new location
|
||||||
if [[ -f /config/nginx/ldap.conf ]] && [[ ! -f /config/nginx/ldap-server.conf ]]; then
|
if [[ -f /config/nginx/ldap.conf ]] && [[ ! -f /config/nginx/ldap-server.conf ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user