]> Nutra Git (v2) - nutratech/vps-root.git/commitdiff
certbot's automated changes to nginx config
authorgamesguru <gamesguru@vps76.local>
Thu, 23 Jun 2022 22:50:38 +0000 (22:50 +0000)
committergamesguru <gamesguru@vps76.local>
Thu, 23 Jun 2022 22:50:38 +0000 (22:50 +0000)
etc/nginx/sites-available/default

index 73a095091c06e18d1343f87e23361a616069b041..89c9fa93ddcb9ae82f47fd295c8506f682c7abe3 100644 (file)
@@ -97,3 +97,30 @@ server {
 #              try_files $uri $uri/ =404;
 #      }
 #}
+
+server {
+    server_name vps76.heliohost.us; # managed by Certbot
+       return 302 https://$server_name$request_uri;
+
+
+    listen [::]:443 ssl ipv6only=on; # managed by Certbot
+    listen 443 ssl; # managed by Certbot
+    ssl_certificate /etc/letsencrypt/live/vps76.heliohost.us/fullchain.pem; # managed by Certbot
+    ssl_certificate_key /etc/letsencrypt/live/vps76.heliohost.us/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
+
+}
+server {
+    if ($host = vps76.heliohost.us) {
+        return 301 https://$host$request_uri;
+    } # managed by Certbot
+
+
+       listen 80 ;
+       listen [::]:80 ;
+    server_name vps76.heliohost.us;
+    return 404; # managed by Certbot
+
+
+}
\ No newline at end of file