Browse Source

Simplify nginx config.

master
Niels G. W. Serup 1 year ago
parent
commit
f02c82cb02
  1. 6
      media.nginx.conf
  2. 8
      misc/nginx-base.conf
  3. 19
      misc/nginx.conf

6
media.nginx.conf

@ -0,0 +1,6 @@
root /home/niels/www/media/site;
index index.html;
location / {
try_files $uri $uri/ =404;
}

8
misc/nginx-base.conf

@ -1,8 +0,0 @@
server_name media.metanohi.name www.media.metanohi.name;
root /var/www/media.metanohi.name/site;
index index.html;
location / {
try_files $uri $uri/ =404;
}

19
misc/nginx.conf

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