Docker-compose: do not access ports <443 (#3261)

* Do not try accessing ports <1024

* adapt nginx reverse proxy for element web

---------

Co-authored-by: fkwp <github-fkwp@w4ve.de>
This commit is contained in:
Timo
2025-05-19 14:18:03 +02:00
committed by GitHub
parent cc8ab0ac93
commit 0110465b38
2 changed files with 5 additions and 6 deletions

View File

@@ -145,11 +145,11 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://element-web:81;
proxy_pass http://element-web:8081;
proxy_ssl_verify off;
}
error_page 500 502 503 504 /50x.html;
}
}

View File

@@ -73,11 +73,11 @@ services:
image: ghcr.io/element-hq/element-web:develop
pull_policy: always
volumes:
- ./backend/ew.test.config.json:/app/config.json
- ./backend/ew.test.config.json:/app/config.json:Z
environment:
ELEMENT_WEB_PORT: 81
ELEMENT_WEB_PORT: 8081
ports:
- "8081:81"
- "8081:8081"
networks:
- ecbackend
@@ -91,7 +91,6 @@ services:
- ./backend/dev_tls_m.localhost.crt:/root/ssl/cert.pem:Z
ports:
# HOST_PORT:CONTAINER_PORT
- "80:80"
- "443:443"
- "8008:80"
- "4443:443"