mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 09:38:49 +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"
|
||||
pull_policy: always
|
||||
restart: always
|
||||
# open port 8090
|
||||
ports:
|
||||
- "8090:8090"
|
||||
volumes:
|
||||
- pb_data:/htwkalender/data
|
||||
networks:
|
||||
- "net"
|
||||
|
||||
htwkalender-frontend:
|
||||
image: DOCKER_REGISTRY_REPO:frontend # DOCKER_REGISTRY_REPO will be replaced by CI
|
||||
pull_policy: always
|
||||
restart: always
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- htwkalender-backend
|
||||
networks:
|
||||
- "net"
|
||||
|
||||
rproxy:
|
||||
image: bitnami/nginx:1.25
|
||||
@ -31,6 +30,12 @@ services:
|
||||
- htwkalender-frontend
|
||||
ports:
|
||||
- "80:80"
|
||||
networks:
|
||||
- "net"
|
||||
|
||||
volumes:
|
||||
pb_data:
|
||||
|
||||
networks:
|
||||
net:
|
||||
external: true
|
@ -34,6 +34,10 @@ http {
|
||||
set_real_ip_from 2405:8100::/32;
|
||||
set_real_ip_from 2a06:98c0::/29;
|
||||
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;
|
||||
|
||||
access_log /opt/bitnami/nginx/logs/proxy_access.log;
|
||||
@ -204,6 +208,8 @@ http {
|
||||
if ($admin) {
|
||||
return 404 "Not Found";
|
||||
}
|
||||
# Increase upload file size
|
||||
client_max_body_size 100m;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
Reference in New Issue
Block a user