Simplify nginx configuration.
This commit is contained in:
parent
25ee80577d
commit
99653d2b75
|
@ -1,6 +1,4 @@
|
|||
server_name metanohi.name www.metanohi.name;
|
||||
|
||||
root /var/www/metanohi.name/web-serve;
|
||||
root /home/niels/www/metanohi/web-serve;
|
||||
index index.html;
|
||||
|
||||
error_page 404 /404.html;
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue