Files
nginx_sites/triton.fet.at/testrbyandi.conf
2018-03-29 16:13:38 +02:00

59 lines
1.6 KiB
Nginx Configuration File

# -*-nginx-*-
server {
listen 80;
server_name testrbyandi.triton.fet.at;
include snippets/letsencrypt.conf;
}
server {
listen 443 ssl http2;
server_name testrbyandi.triton.fet.at;
ssl_certificate /etc/letsencrypt/live/testrby.triton.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/testrby.triton.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/testrby.triton.fet.at/chain.pem;
include snippets/ssl.conf;
location / {
return 302 https://www.testrbyandi.trition.fet.at$request_uri;
}
}
server {
listen 80;
server_name www.testrbyandi.triton.fet.at;
include snippets/letsencrypt.conf;
}
server {
listen 443 ssl http2;
server_name www.testrbyandi.triton.fet.at;
ssl_certificate /etc/letsencrypt/live/testrby.triton.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/testrby.triton.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/testrby.triton.fet.at/chain.pem;
include snippets/ssl.conf;
include snippets/ldap.conf;
location / {
proxy_pass http://mogok.local:3002;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /tc {
rewrite ^/tc/(.*)$ /$1 break;
proxy_pass http://triton-amp.local:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /conf {
rewrite ^/conf/(.*)$ /$1 break;
proxy_pass http://mogok.local:8001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}