31 lines
814 B
Nginx Configuration File
31 lines
814 B
Nginx Configuration File
# -*-nginx-*-
|
|
server {
|
|
listen 80;
|
|
server_name www.fachschaften.at fachschaften.at;
|
|
|
|
include snippets/letsencrypt.conf;
|
|
|
|
location = /google07a86d8e121467dc.html {
|
|
rewrite ^/(.*) $1;
|
|
return 200 "google-site-verification: $uri";
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name www.fachschaften.at fachschaften.at;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/www.fachschaften.at/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/www.fachschaften.at/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/www.fachschaften.at/chain.pem;
|
|
include snippets/ssl.conf;
|
|
|
|
location = / {
|
|
return 301 https://$host/articles;
|
|
}
|
|
location / {
|
|
proxy_pass http://fachschaften.local:3000;
|
|
include snippets/proxy_header.conf;
|
|
}
|
|
}
|