home · contact · privacy
Add static websites setup.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 27 Aug 2023 02:15:31 +0000 (04:15 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 27 Aug 2023 02:15:31 +0000 (04:15 +0200)
bookworm/etc_files/static_websites/etc/nginx/sites-available/status.plomlompom.com.nginx [new file with mode: 0644]
bookworm/setup_scripts/setup_web.sh

diff --git a/bookworm/etc_files/static_websites/etc/nginx/sites-available/status.plomlompom.com.nginx b/bookworm/etc_files/static_websites/etc/nginx/sites-available/status.plomlompom.com.nginx
new file mode 100644 (file)
index 0000000..d16300f
--- /dev/null
@@ -0,0 +1,7 @@
+server {
+    listen 443 ssl;
+    server_name REPLACE_fqdn_ECALPER;
+    ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem;
+    ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem;
+    root /var/www/status.plomlompom.com/;
+}
index 8bb9987b559a0555bd760553d57ad43b0f577864..7f2c5a2a7b4ce2f6603cdafaea14067ebc4626fe 100755 (executable)
@@ -15,8 +15,8 @@ ln -sf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
 certbot --nginx --agree-tos --redirect --no-eff-email -m "${mail}" -d "${domain}"
 rm /etc/nginx/sites-enabled/default
 
-# Prepare NGINX.
-sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" /etc/nginx/sites-available/dumpsite.nginx
-ln -s /etc/nginx/sites-available/dumpsite.nginx /etc/nginx/sites-enabled/dumpsite.nginx
+# Prepare NGINX for status.plomlompom.com.
+sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" /etc/nginx/sites-available/status.plomlompom.com.nginx
+ln -s /etc/nginx/sites-available/dumpsite.nginx /etc/nginx/sites-enabled/status.plomlompom.com.nginx
 
 service nginx restart