ports 443 and 80 conflict fix
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

This commit is contained in:
Linden Crandall 2025-02-08 04:59:36 +09:00
parent eacbf4bd14
commit bb979ac003
4 changed files with 14 additions and 2 deletions

View File

@ -32,7 +32,7 @@ services:
- ./certbot/www:/var/www/certbot
ports:
- ${PORT}:${PORT}
- 443:443
- ${PORT}:443
certbot:
image: certbot/certbot:latest

View File

@ -9,6 +9,7 @@ http {
server {
listen 7757;
listen [::]:7757;
server_name <HOSTNAME>;
location / {

View File

@ -9,6 +9,7 @@ http {
server {
listen 7757;
listen [::]:7757;
server_name <HOSTNAME>;
location / {

View File

@ -8,7 +8,10 @@ events {
http {
server {
listen 7757;
listen [::]:7757;
server_name <HOSTNAME>;
location ~ /.well-known/acme-challenge/ {
@ -19,7 +22,10 @@ http {
}
server {
listen 443 ssl http2;
listen 7757 ssl http2;
listen [::]:7757 ssl http2;
# use ssl letsencrypt certs
ssl_certificate /etc/letsencrypt/live/<HOSTNAME>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<HOSTNAME>/privkey.pem;
@ -28,6 +34,10 @@ http {
location / {
proxy_pass http://<HOSTNAME>: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/ {