Merge pull request 'removed http block' (#10) 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: #10
This commit is contained in:
Linden Crandall 2025-02-07 22:17:57 +00:00
commit 8c85b621fc
3 changed files with 57 additions and 65 deletions

View File

@ -1,23 +1,20 @@
# 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
http {
server {
# nonstandard nginx http port
listen 7758;
listen [::]:7758;
server_name <HOSTNAME>;
server {
location / {
# nonstandard nginx http port
listen 7758;
listen [::]:7758;
server_name <HOSTNAME>;
# Forward to Automatisch site which is running on port 7757
proxy_pass http://main:7757;
}
location / {
# Forward to Automatisch site which is running on port 7757
proxy_pass http://main:7757;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}

View File

@ -1,23 +1,20 @@
# 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
http {
server {
# nonstandard nginx http port
listen 7758;
listen [::]:7758;
server_name <HOSTNAME>;
server {
location / {
# nonstandard nginx http port
listen 7758;
listen [::]:7758;
server_name <HOSTNAME>;
# Forward to Automatisch site which is running on port 7757
proxy_pass http://main:7757;
}
location / {
# Forward to Automatisch site which is running on port 7757
proxy_pass http://main:7757;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}

View File

@ -1,46 +1,44 @@
# nginx conf file to use after LetsEncrypt SSL certs have been created
# replace <HOSTNAME> with your DNS i.e.automatisch.lasthourhosting.org
http {
server {
server {
# nonstandard nginx http port
listen 7758;
listen [::]:7758;
server_name <HOSTNAME>;
# nonstandard nginx http port
listen 7758;
listen [::]:7758;
server_name <HOSTNAME>;
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
return 301 https://$host$request_uri;
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
server {
return 301 https://$host$request_uri;
}
# nonstandard nginx https port
listen 7759 ssl http2;
listen [::]:7759 ssl http2;
server {
# use ssl letsencrypt certs
ssl_certificate /etc/letsencrypt/live/<HOSTNAME>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<HOSTNAME>/privkey.pem;
server_name <HOSTNAME>;
# nonstandard nginx https port
listen 7759 ssl http2;
listen [::]:7759 ssl http2;
# use ssl letsencrypt certs
ssl_certificate /etc/letsencrypt/live/<HOSTNAME>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<HOSTNAME>/privkey.pem;
server_name <HOSTNAME>;
location / {
location / {
# Forward to Automatisch site which is running on port 7757
proxy_pass http://main:7757/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
# Forward to Automatisch site which is running on port 7757
proxy_pass http://main:7757/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}
}