update config for envvar passing
This commit is contained in:
parent
747260ac92
commit
6a5573aad7
12
nginx.conf
12
nginx.conf
|
@ -2,6 +2,12 @@ worker_processes ${{NUM_WORKERS}};
|
||||||
error_log stderr notice;
|
error_log stderr notice;
|
||||||
daemon off;
|
daemon off;
|
||||||
|
|
||||||
|
env POSTGRESQL_PORT_5432_TCP_PORT;
|
||||||
|
env POSTGRESQL_PORT_5432_TCP_ADDR;
|
||||||
|
env DB_USER;
|
||||||
|
env DB_PASS;
|
||||||
|
env DB_NAME;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
@ -13,12 +19,6 @@ http {
|
||||||
listen ${{PORT}};
|
listen ${{PORT}};
|
||||||
lua_code_cache ${{CODE_CACHE}};
|
lua_code_cache ${{CODE_CACHE}};
|
||||||
|
|
||||||
env POSTGRESQL_PORT_5432_TCP_PORT;
|
|
||||||
env POSTGRESQL_PORT_5432_TCP_ADDR;
|
|
||||||
env DB_USER;
|
|
||||||
env DB_PASS;
|
|
||||||
env DB_NAME;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
content_by_lua '
|
content_by_lua '
|
||||||
|
|
Loading…
Reference in New Issue