Merge pull request 'nginx conf file updates' (#5) from dev into main
Some checks are pending
Automatisch Backend Tests / test (push) Waiting to run
Automatisch CI / linter (push) Waiting to run
Automatisch CI / start-backend-server (push) Waiting to run
Automatisch CI / start-backend-worker (push) Waiting to run
Automatisch CI / build-web (push) Waiting to run
Automatisch UI Tests / test (push) Waiting to run

Reviewed-on: #5
This commit is contained in:
Linden Crandall 2025-02-07 19:01:35 +00:00
commit b687178b13
3 changed files with 21 additions and 12 deletions

View File

@ -1,3 +1,6 @@
# initial nginx conf file needed when running certbot container the first time to generate ssl certs
# replace <HOSTNAME> 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 <HOSTNAME>;
location / {
proxy_pass http://main:7757;
proxy_pass http://<HOSTNAME>:7757;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
}
}

View File

@ -1,3 +1,6 @@
# initial nginx conf file needed when running certbot container the first time to generate ssl certs
# replace <HOSTNAME> 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 <HOSTNAME>;
location / {
proxy_pass http://main:7757;
proxy_pass http://<HOSTNAME>:7757;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
}
}

View File

@ -1,3 +1,6 @@
# nginx conf file to use after LetsEncrypt SSL certs have been created
# replace <HOSTNAME> 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 <HOSTNAME>;
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/<HOSTNAME>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<HOSTNAME>/privkey.pem;
server_name <HOSTNAME>;
location / {
proxy_pass http://automatisch.lasthourhosting.org:7757/;
proxy_pass http://<HOSTNAME>:7757/;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
}
}