mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 15:40:21 +05:30
В nginx теперь можно подсунуть кастомную ссылку на php
This commit is contained in:
parent
ee19df2623
commit
2ef6ac3c08
@ -14,14 +14,13 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
build: ./docker/nginx
|
build: ./docker/nginx
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
links:
|
links:
|
||||||
- app
|
- app
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- app
|
- app
|
||||||
environment:
|
environment:
|
||||||
- AUTHSERVER_HOST=authserver.ely.by
|
- AUTHSERVER_HOST=authserver.ely.by
|
||||||
|
- PHP_LINK=app
|
||||||
|
|
||||||
node-dev-server:
|
node-dev-server:
|
||||||
build: ./frontend
|
build: ./frontend
|
||||||
|
@ -31,7 +31,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
fastcgi_pass app:9000;
|
fastcgi_pass ${PHP_LINK}:9000;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param SERVER_NAME $host;
|
fastcgi_param SERVER_NAME $host;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
envsubst '$AUTHSERVER_HOST' < /etc/nginx/conf.d/account.ely.by.conf.template > /etc/nginx/conf.d/default.conf
|
envsubst '$AUTHSERVER_HOST:$PHP_LINK' < /etc/nginx/conf.d/account.ely.by.conf.template > /etc/nginx/conf.d/default.conf
|
||||||
nginx -g 'daemon off;'
|
nginx -g 'daemon off;'
|
||||||
|
Loading…
Reference in New Issue
Block a user