Fix config.

This commit is contained in:
Florian THIERRY
2024-09-19 22:24:39 +02:00
parent 23025e3606
commit 1b92fd269e
2 changed files with 3 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ services:
- "SPRING_PROFILES_ACTIVE=prod" - "SPRING_PROFILES_ACTIVE=prod"
ports: ports:
- "50011:8080" - "50011:8080"
volumes:
- "/opt/codiki/pictures:/opt/codiki/pictures"
networks: networks:
- "codiki-network" - "codiki-network"

View File

@@ -44,7 +44,7 @@ http {
} }
location ~ ^/api { location ~ ^/api {
proxy_pass http://codiki-backend:8080; proxy_pass http://192.168.0.153:50011;
proxy_set_header Host $host:$server_port; proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;