38 lines
1.1 KiB
Nginx Configuration File
38 lines
1.1 KiB
Nginx Configuration File
# -*-nginx-*-
|
|
server {
|
|
listen 80;
|
|
server_name www.mail.fet.at mail.fet.at fet.htu.tuwien.ac.at;
|
|
|
|
include snippets/letsencrypt.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name www.mail.fet.at mail.fet.at fet.htu.tuwien.ac.at;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/www.mail.fet.at/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/www.mail.fet.at/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/www.mail.fet.at/chain.pem;
|
|
include snippets/ssl.conf;
|
|
|
|
# include snippets/ldap.conf;
|
|
client_max_body_size 100m;
|
|
location / {
|
|
proxy_bind $host:443;
|
|
proxy_pass http://192.168.95.11:80;
|
|
# proxy_redirect https://$host:8000/ https://$host:443/;
|
|
# proxy_redirect https://mail.fet.at:8000/ https://mail.fet.at:443/;
|
|
# proxy_redirect https://$host:8000/ https://$host:443/;
|
|
include snippets/proxy_header.conf;
|
|
}
|
|
location /http {
|
|
index index.html;
|
|
rewrite_log on;
|
|
#rewrite ^/http(.*) $1 break;
|
|
alias /srv/www/mail/static;
|
|
}
|
|
location = / {
|
|
return 302 https://mail.fet.at/http/;
|
|
}
|
|
}
|