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