Add database config
This commit is contained in:
parent
a036743956
commit
441a9e0d9a
|
@ -4,3 +4,4 @@ config "development", ->
|
||||||
|
|
||||||
config "docker", ->
|
config "docker", ->
|
||||||
port os.getenv "PORT"
|
port os.getenv "PORT"
|
||||||
|
postgresql_url os.getenv "DATABASE_URL"
|
||||||
|
|
|
@ -6,6 +6,8 @@ env PORT;
|
||||||
env GITHUB_TOKEN;
|
env GITHUB_TOKEN;
|
||||||
env GIT_REV;
|
env GIT_REV;
|
||||||
env MAILGUN_KEY;
|
env MAILGUN_KEY;
|
||||||
|
env DATABASE_URL;
|
||||||
|
env PASSWORD;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
|
@ -14,6 +16,10 @@ events {
|
||||||
http {
|
http {
|
||||||
include mime.types;
|
include mime.types;
|
||||||
|
|
||||||
|
upstream database {
|
||||||
|
postgres_server ${{pg POSTGRESQL_URL}};
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen ${{PORT}};
|
listen ${{PORT}};
|
||||||
lua_code_cache ${{CODE_CACHE}};
|
lua_code_cache ${{CODE_CACHE}};
|
||||||
|
|
Loading…
Reference in New Issue