unique hostname for proxy forwarding

This commit is contained in:
2026-04-10 20:05:41 -04:00
parent c5965f4193
commit c3624e477b
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
export ENTRYPOINT_VERSION=v2
export NGINX_CONFIG_VERSION=v1
export NGINX_CONFIG_VERSION=v2
export PG_BACKUP_VERSION=v1
file_env() {

View File

@ -73,7 +73,9 @@ services:
- db_password
- secret_key
networks:
- internal
internal:
aliases:
- "${STACK_NAME}-app"
proxy:
image: nginx:stable

View File

@ -10,7 +10,7 @@ server {
add_header X-Content-Type-Options nosniff;
location / {
set $upstream_app http://app:5000;
set $upstream_app http://{{ env "STACK_NAME" }}-app:5000;
location /static/ {
alias /liberaforms/static/;