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:
@@ -145,11 +145,11 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
proxy_pass http://element-web:81;
|
proxy_pass http://element-web:8081;
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,11 +73,11 @@ services:
|
|||||||
image: ghcr.io/element-hq/element-web:develop
|
image: ghcr.io/element-hq/element-web:develop
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/ew.test.config.json:/app/config.json
|
- ./backend/ew.test.config.json:/app/config.json:Z
|
||||||
environment:
|
environment:
|
||||||
ELEMENT_WEB_PORT: 81
|
ELEMENT_WEB_PORT: 8081
|
||||||
ports:
|
ports:
|
||||||
- "8081:81"
|
- "8081:8081"
|
||||||
networks:
|
networks:
|
||||||
- ecbackend
|
- ecbackend
|
||||||
|
|
||||||
@@ -91,7 +91,6 @@ services:
|
|||||||
- ./backend/dev_tls_m.localhost.crt:/root/ssl/cert.pem:Z
|
- ./backend/dev_tls_m.localhost.crt:/root/ssl/cert.pem:Z
|
||||||
ports:
|
ports:
|
||||||
# HOST_PORT:CONTAINER_PORT
|
# HOST_PORT:CONTAINER_PORT
|
||||||
- "80:80"
|
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "8008:80"
|
- "8008:80"
|
||||||
- "4443:443"
|
- "4443:443"
|
||||||
|
|||||||
Reference in New Issue
Block a user