mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 17:48:51 +02:00
fix:#34 reverse config and compose prod fixed
This commit is contained in:
@ -6,20 +6,19 @@ services:
|
|||||||
command: "--http=0.0.0.0:8090 --dir=/htwkalender/data/pb_data"
|
command: "--http=0.0.0.0:8090 --dir=/htwkalender/data/pb_data"
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
restart: always
|
restart: always
|
||||||
# open port 8090
|
|
||||||
ports:
|
|
||||||
- "8090:8090"
|
|
||||||
volumes:
|
volumes:
|
||||||
- pb_data:/htwkalender/data
|
- pb_data:/htwkalender/data
|
||||||
|
networks:
|
||||||
|
- "net"
|
||||||
|
|
||||||
htwkalender-frontend:
|
htwkalender-frontend:
|
||||||
image: DOCKER_REGISTRY_REPO:frontend # DOCKER_REGISTRY_REPO will be replaced by CI
|
image: DOCKER_REGISTRY_REPO:frontend # DOCKER_REGISTRY_REPO will be replaced by CI
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
|
||||||
- "8000:8000"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- htwkalender-backend
|
- htwkalender-backend
|
||||||
|
networks:
|
||||||
|
- "net"
|
||||||
|
|
||||||
rproxy:
|
rproxy:
|
||||||
image: bitnami/nginx:1.25
|
image: bitnami/nginx:1.25
|
||||||
@ -31,6 +30,12 @@ services:
|
|||||||
- htwkalender-frontend
|
- htwkalender-frontend
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
networks:
|
||||||
|
- "net"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pb_data:
|
pb_data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
net:
|
||||||
|
external: true
|
@ -34,6 +34,10 @@ http {
|
|||||||
set_real_ip_from 2405:8100::/32;
|
set_real_ip_from 2405:8100::/32;
|
||||||
set_real_ip_from 2a06:98c0::/29;
|
set_real_ip_from 2a06:98c0::/29;
|
||||||
set_real_ip_from 2c0f:f248::/32;
|
set_real_ip_from 2c0f:f248::/32;
|
||||||
|
|
||||||
|
# Docker IP Ranges (https://docs.docker.com/network/iptables/)
|
||||||
|
set_real_ip_from 172.16.0.0/12;
|
||||||
|
|
||||||
real_ip_header CF-Connecting-IP;
|
real_ip_header CF-Connecting-IP;
|
||||||
|
|
||||||
access_log /opt/bitnami/nginx/logs/proxy_access.log;
|
access_log /opt/bitnami/nginx/logs/proxy_access.log;
|
||||||
@ -204,6 +208,8 @@ http {
|
|||||||
if ($admin) {
|
if ($admin) {
|
||||||
return 404 "Not Found";
|
return 404 "Not Found";
|
||||||
}
|
}
|
||||||
|
# Increase upload file size
|
||||||
|
client_max_body_size 100m;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
Reference in New Issue
Block a user