48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
server {
|
|
server_name _;
|
|
# you can serve any number of redirects from here...
|
|
listen 80;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name rpg.ascorrea.com;
|
|
include certs/certs.conf;
|
|
include applications/vouch.conf;
|
|
|
|
root /var/www/html/;
|
|
|
|
error_page 401 = @error401;
|
|
|
|
location / {
|
|
# This application is simply proxy-passed without any authentication
|
|
index index.html index.htm;
|
|
|
|
}
|
|
|
|
location /foundry/ {
|
|
auth_request /vouch/validate;
|
|
auth_request_set $auth_resp_x_vouch_user $upstream_http_x_vouch_user;
|
|
proxy_set_header X-Vouch-User $auth_resp_x_vouch_user;
|
|
include applications/foundry.conf;
|
|
}
|
|
|
|
location /filebrowser/ {
|
|
auth_request /vouch/validate;
|
|
auth_request_set $auth_resp_x_vouch_user $upstream_http_x_vouch_user;
|
|
proxy_set_header X-Vouch-User $auth_resp_x_vouch_user;
|
|
include applications/filebrowser.conf;
|
|
}
|
|
|
|
location /yacht/ {
|
|
auth_request /vouch/validate;
|
|
auth_request_set $auth_resp_x_vouch_user $upstream_http_x_vouch_user;
|
|
proxy_set_header X-Vouch-User $auth_resp_x_vouch_user;
|
|
include applications/yacht.conf;
|
|
}
|
|
|
|
include applications/podcast.conf;
|
|
|
|
}
|