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