Browse Source

Simplify nginx configuration.

master
Niels G. W. Serup 12 months ago
parent
commit
99653d2b75
  1. 4
      metanohi.nginx.conf
  2. 19
      nginx/site.conf

4
nginx/base.conf → metanohi.nginx.conf

@ -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;

19
nginx/site.conf

@ -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…
Cancel
Save