fix:#34 reverse config and compose prod fixed

This commit is contained in:
Elmar Kresse
2024-03-03 18:57:47 +01:00
parent 115ff9026c
commit fd6cbee69c
2 changed files with 16 additions and 5 deletions

View File

@ -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

View File

@ -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 / {