tweak: add simpler nginx config example

This commit is contained in:
Nuno Sempere 2022-04-12 03:43:49 +00:00
parent dd39692b19
commit 066678f53b
2 changed files with 23 additions and 8 deletions

View File

@ -1,14 +1,8 @@
# Old config: # Old config:
server { server {
listen 80;
listen 443 ssl; # managed by Certbot listen [::]:80;
ssl_certificate /etc/letsencrypt/live/nunosempere.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/nunosempere.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
# listen 80;
# listen [::]:80;
root /home/www/werc/werc-1.5.0/sites/nunosempere.com; root /home/www/werc/werc-1.5.0/sites/nunosempere.com;
index index.html index.htm index.nginx-debian.html; index index.html index.htm index.nginx-debian.html;

View File

@ -0,0 +1,21 @@
# Old config:
server {
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/nunosempere.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/nunosempere.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
# listen 80;
# listen [::]:80;
root /home/www/werc/werc-1.5.0/sites/nunosempere.com;
index index.html index.htm index.nginx-debian.html;
server_name nunosempere.com;
location / {
try_files $uri $uri/ =404;
}
}