mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-03-12 05:25:24 -07:00
36 lines
882 B
Plaintext
36 lines
882 B
Plaintext
## Version 2023/05/31
|
|
# make sure that your authelia container is named authelia
|
|
# make sure that your dns has a cname set for authelia
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
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 {
|
|
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;
|
|
|
|
}
|
|
}
|