initial commit
This commit is contained in:
67
triton.fet.at/wp2.conf
Normal file
67
triton.fet.at/wp2.conf
Normal file
@@ -0,0 +1,67 @@
|
||||
# -*-nginx-*-
|
||||
server {
|
||||
listen 80;
|
||||
server_name wp2.triton.fet.at www.wp2.triton.fet.at;
|
||||
|
||||
location /.well-known {
|
||||
root /srv/welcome;
|
||||
allow all;
|
||||
}
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
upstream triamp2 {
|
||||
server triton-amp.local:8003;
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name wp2.triton.fet.at www.wp2.triton.fet.at;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/wp.triton.fet.at/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/wp.triton.fet.at/privkey.pem;
|
||||
satisfy any;
|
||||
auth_ldap "Under construction";
|
||||
auth_ldap_servers fet;
|
||||
|
||||
auth_basic "Under construction";
|
||||
auth_basic_user_file /srv/.passwd;
|
||||
|
||||
location /.well-known {
|
||||
root /srv/welcome;
|
||||
allow all;
|
||||
}
|
||||
|
||||
location / {
|
||||
# rewrite ^/wp/(.*)$ /$1 break;
|
||||
# return 301 http://$host$request_uri;
|
||||
proxy_pass http://triamp2;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_set_header Host wp2.triton.fet.at;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X_FORWARDED_SSL on;
|
||||
proxy_set_header REQUEST_SCHEME https;
|
||||
proxy_set_header HTTP_X_FORWARDED_SSL on;
|
||||
proxy_redirect default;
|
||||
|
||||
# more_set_headers 'Link: <https://wp.triton.fet.at/index.php/wp-json/>; rel="https://api.w.org/", <https://wp.triton.fet.at/>; rel=shortlink'
|
||||
# more_set_headers 'Hello: World'
|
||||
# sub_filter http https;
|
||||
# sub_filter WordPress WP;
|
||||
|
||||
# force https Links
|
||||
sub_filter http://wp2.triton.fet.at https://wp2.triton.fet.at;
|
||||
# sub_filter http: https:;
|
||||
|
||||
|
||||
# sub_filter_types text/html;
|
||||
# sub_filter_types application/javascript, text/javascript, text/html;# application/html text/* application/x-javascript text/xml;
|
||||
sub_filter_once off;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user