36 lines
920 B
Nginx Configuration File
36 lines
920 B
Nginx Configuration File
# -*-nginx-*-
|
|
upstream triampsql {
|
|
server triton-amp.local:8002;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name sql.triton.fet.at www.sql.triton.fet.at;
|
|
|
|
include snippets/letsencrypt.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name sql.triton.fet.at www.sql.triton.fet.at;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/triton.fet.at/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/triton.fet.at/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/triton.fet.at/chain.pem;
|
|
include snippets/ssl.conf;
|
|
|
|
include snippets/ldap.conf;
|
|
|
|
location / {
|
|
proxy_pass http://triampsql;
|
|
include snippets/proxy_header.conf;
|
|
proxy_set_header Accept-Encoding "";
|
|
proxy_redirect default;
|
|
|
|
# force https Links
|
|
# sub_filter http://wp.triton.fet.at https://wp.triton.fet.at;
|
|
# sub_filter http: https:;
|
|
# sub_filter_once off;
|
|
}
|
|
}
|