Files
nginx_sites/fet.at/triton20.conf
2021-09-18 14:59:54 +02:00

85 lines
2.1 KiB
Plaintext

server {
listen 80;
server_name *.triton20.fet.at;
include snippets/letsencrypt.conf;
}
# server {
# listen 80;
# server_name triton20.fet.at *.triton20.fet.at;
# location / {
# proxy_pass http://triton20:80;
# # include snippets/proxy_header.conf;
# }
#}
server {
listen 443;
server_name triton20.fet.at *.triton20.fet.at;
location / {
proxy_pass https://triton20:443;
# include snippets/proxy_header.conf;
}
}
server {
listen 443;
server_name andis.triton20.fet.at;
location / {
include snippets/ldap.conf;
proxy_pass http://triton20:8101;
include snippets/proxy_header.conf;
proxy_set_header Authorization "";
proxy_set_header REMOTE_USER $remote_user;
}
}
server {
listen 443 ssl http2;
server_name patrick.triton20.fet.at;
# ssl_certificate /etc/letsencrypt/live/triton20.fet.at/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/triton20.fet.at/privkey.pem;
# ssl_trusted_certificate /etc/letsencrypt/live/triton20.fet.at/chain.pem;
include snippets/ssl.conf;
include snippets/ldap.conf;
client_max_body_size 1000M;
location / {
include snippets/header.conf;
proxy_pass http://triton20:8107;
include snippets/proxy_header.conf;
proxy_set_header Authorization "";
proxy_set_header REMOTE_USER $remote_user;
}
location /dev {
proxy_pass http://triton20:8107;
include snippets/proxy_header.conf;
proxy_set_header Authorization "";
proxy_set_header REMOTE_USER $remote_user;
}
location /etherpad {
proxy_pass http://triton20:8107;
include snippets/proxy_header.conf;
proxy_set_header Authorization "";
proxy_set_header REMOTE_USER $remote_user;
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'";
}
location /admin {
proxy_pass http://triton20:8107;
include snippets/proxy_header.conf;
proxy_set_header Authorization "";
proxy_set_header REMOTE_USER $remote_user;
}
}