unique hostname for proxy forwarding
This commit is contained in:
2
abra.sh
2
abra.sh
@ -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() {
|
||||
|
||||
@ -73,7 +73,9 @@ services:
|
||||
- db_password
|
||||
- secret_key
|
||||
networks:
|
||||
- internal
|
||||
internal:
|
||||
aliases:
|
||||
- "${STACK_NAME}-app"
|
||||
|
||||
proxy:
|
||||
image: nginx:stable
|
||||
|
||||
@ -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/;
|
||||
|
||||
Reference in New Issue
Block a user