From ec9732cfe5b0fba92b6e037ee270b36bf9d7f1d1 Mon Sep 17 00:00:00 2001 From: Linden Crandall Date: Sat, 8 Feb 2025 04:00:51 +0900 Subject: [PATCH] nginx conf file updates --- https/nginx/automatisch_letsencrypt_nginx.conf | 9 ++++++--- .../automatisch_letsencrypt_nginx_template.conf | 9 ++++++--- ... secondary_automatisch_letsencrypt_nginx.conf} | 15 +++++++++------ 3 files changed, 21 insertions(+), 12 deletions(-) rename https/nginx/{temp.conf => secondary_automatisch_letsencrypt_nginx.conf} (54%) diff --git a/https/nginx/automatisch_letsencrypt_nginx.conf b/https/nginx/automatisch_letsencrypt_nginx.conf index d49e548..89d5848 100644 --- a/https/nginx/automatisch_letsencrypt_nginx.conf +++ b/https/nginx/automatisch_letsencrypt_nginx.conf @@ -1,3 +1,6 @@ +# initial nginx conf file needed when running certbot container the first time to generate ssl certs +# replace with your DNS i.e.automatisch.lasthourhosting.org + events { worker_connections 1024; } @@ -6,14 +9,14 @@ http { server { listen 7757; - server_name automatisch.lasthourhosting.org; + server_name ; location / { - proxy_pass http://main:7757; + proxy_pass http://:7757; } location ~ /.well-known/acme-challenge/ { root /var/www/certbot; } } -} +} \ No newline at end of file diff --git a/https/nginx/automatisch_letsencrypt_nginx_template.conf b/https/nginx/automatisch_letsencrypt_nginx_template.conf index d49e548..89d5848 100644 --- a/https/nginx/automatisch_letsencrypt_nginx_template.conf +++ b/https/nginx/automatisch_letsencrypt_nginx_template.conf @@ -1,3 +1,6 @@ +# initial nginx conf file needed when running certbot container the first time to generate ssl certs +# replace with your DNS i.e.automatisch.lasthourhosting.org + events { worker_connections 1024; } @@ -6,14 +9,14 @@ http { server { listen 7757; - server_name automatisch.lasthourhosting.org; + server_name ; location / { - proxy_pass http://main:7757; + proxy_pass http://:7757; } location ~ /.well-known/acme-challenge/ { root /var/www/certbot; } } -} +} \ No newline at end of file diff --git a/https/nginx/temp.conf b/https/nginx/secondary_automatisch_letsencrypt_nginx.conf similarity index 54% rename from https/nginx/temp.conf rename to https/nginx/secondary_automatisch_letsencrypt_nginx.conf index 42f48ec..39a9748 100644 --- a/https/nginx/temp.conf +++ b/https/nginx/secondary_automatisch_letsencrypt_nginx.conf @@ -1,3 +1,6 @@ +# nginx conf file to use after LetsEncrypt SSL certs have been created +# replace with your DNS i.e.automatisch.lasthourhosting.org + events { worker_connections 1024; } @@ -6,7 +9,7 @@ http { server { listen 7757; - server_name automatisch.lasthourhosting.org; + server_name ; location ~ /.well-known/acme-challenge/ { root /var/www/certbot; @@ -18,17 +21,17 @@ http { server { listen 443 ssl http2; # use ssl letsencrypt certs - ssl_certificate /etc/letsencrypt/live/automatisch.lasthourhosting.org/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/automatisch.lasthourhosting.org/privkey.pem; - server_name automatisch.lasthourhosting.org; + ssl_certificate /etc/letsencrypt/live//fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live//privkey.pem; + server_name ; location / { - proxy_pass http://automatisch.lasthourhosting.org:7757/; + proxy_pass http://:7757/; } location ~ /.well-known/acme-challenge/ { root /var/www/certbot; } } -} +} \ No newline at end of file -- 2.47.2