generalize addsubdomain to work with different locations

This commit is contained in:
2024-01-22 17:02:28 +01:00
parent f1c39a5cf0
commit 3ee717e7d1
6 changed files with 44 additions and 40 deletions

View File

@@ -0,0 +1,18 @@
server {
listen 443 ssl ;
listen [::]:443 ssl ;
index index.html index.htm index.nginx-debian.html;
server_name subdomain.dmz.rs subdomain.decentrala.org;
ssl_certificate /etc/letsencrypt/live/subdomain.dmz.rs/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/subdomain.dmz.rs/privkey.pem;
ssl_dhparam /etc/ssl/dhparam.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
root /var/www/subnodotdmzrs;
resolver 9.9.9.9;
}