29 lines
649 B
Nginx Configuration File
29 lines
649 B
Nginx Configuration File
# -*-nginx-*-
|
|
server {
|
|
listen 80;
|
|
server_name wp.triton.fet.at;
|
|
|
|
location /.well-known {
|
|
root /srv/welcome;
|
|
allow all;
|
|
}
|
|
location / {
|
|
return 302 https://www.onetufree.at$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name wp.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;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/wp.triton.fet.at/chain.pem;
|
|
|
|
include snippets/ssl.conf;
|
|
|
|
location / {
|
|
return 302 https://www.onetufree.at$request_uri;
|
|
}
|
|
}
|