initial commit
This commit is contained in:
49
triton.fet.at/sql.triton.fet.at.conf
Normal file
49
triton.fet.at/sql.triton.fet.at.conf
Normal file
@@ -0,0 +1,49 @@
|
||||
# -*-nginx-*-
|
||||
upstream triampsql {
|
||||
server triton-amp.local:8002;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name sql.triton.fet.at www.sql.triton.fet.at;
|
||||
root /srv/pxy/wptriton;
|
||||
location /.well-known {
|
||||
allow all;
|
||||
}
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
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;
|
||||
|
||||
auth_ldap "FET Login";
|
||||
auth_ldap_servers fet;
|
||||
|
||||
location /.well-known {
|
||||
allow all;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://triampsql;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_set_header Host sql.triton.fet.at;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X_FORWARDED_SSL on;
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user