Simplify nginx configuration.

This commit is contained in:
Niels G. W. Serup 2020-08-23 23:48:38 +02:00
parent 25ee80577d
commit 99653d2b75
2 changed files with 1 additions and 22 deletions

View File

@ -1,6 +1,4 @@
server_name metanohi.name www.metanohi.name; root /home/niels/www/metanohi/web-serve;
root /var/www/metanohi.name/web-serve;
index index.html; index index.html;
error_page 404 /404.html; error_page 404 /404.html;

View File

@ -1,19 +0,0 @@
server {
listen 80;
listen [::]:80;
include /etc/nginx/snippets/letsencrypt.conf;
include /etc/nginx/basics/niels/metanohi.name.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/metanohi.name/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/metanohi.name/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/metanohi.name/fullchain.pem;
include /etc/nginx/snippets/ssl.conf;
include /etc/nginx/basics/niels/metanohi.name.conf;
}