mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-22 06:13:49 -07:00
Create authentik.subdomain.conf.sample
This commit is contained in:
parent
d86bb43225
commit
b32878ad9c
1 changed files with 21 additions and 0 deletions
21
authentik.subdomain.conf.sample
Normal file
21
authentik.subdomain.conf.sample
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
## Version 2023/02/01
|
||||||
|
# make sure that your dns has a cname set for authentik and that your authentik container is not using a base url
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
server_name authentik.*;
|
||||||
|
|
||||||
|
include /config/nginx/ssl.conf;
|
||||||
|
client_max_body_size 0;
|
||||||
|
location / {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header Connection $connection_upgrade_keepalive;
|
||||||
|
set $upstream_app authentik-server;
|
||||||
|
set $upstream_port 9443;
|
||||||
|
set $upstream_proto https;
|
||||||
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue