remove pg connect string, add rethink user and password

This commit is contained in:
emil-lengman 2020-08-22 21:29:41 +02:00
parent 9f41993566
commit 69cf505a90
2 changed files with 7 additions and 2 deletions

View file

@ -21,11 +21,12 @@ ENV STORAGE_TYPE=memcached \
STORAGE_PORT=11211\ STORAGE_PORT=11211\
STORAGE_EXPIRE_SECONDS=2592000\ STORAGE_EXPIRE_SECONDS=2592000\
STORAGE_DB=2 \ STORAGE_DB=2 \
STORAGE_CONNECTION_URL= \
STORAGE_AWS_BUCKET= \ STORAGE_AWS_BUCKET= \
STORAGE_AWS_REGION= \ STORAGE_AWS_REGION= \
STORAGE_PG_PASSWORD= \ STORAGE_PG_PASSWORD= \
STORAGE_PG_USERNAME= STORAGE_PG_USERNAME= \
STORAGE_RETHINK_USER= \
STORAGE_RETHINK_PASSWORD=
ENV LOGGING_LEVEL=verbose \ ENV LOGGING_LEVEL=verbose \
LOGGING_TYPE=Console \ LOGGING_TYPE=Console \

View file

@ -14,6 +14,8 @@ const {
STORAGE_AWS_REGION, STORAGE_AWS_REGION,
STORAGE_PG_PASSWORD, STORAGE_PG_PASSWORD,
STORAGE_PG_USERNAME, STORAGE_PG_USERNAME,
STORAGE_RETHINK_USER,
STORAGE_RETHINK_PASSWORD,
LOGGING_LEVEL, LOGGING_LEVEL,
LOGGING_TYPE, LOGGING_TYPE,
LOGGING_COLORIZE, LOGGING_COLORIZE,
@ -91,6 +93,8 @@ const config = {
region: STORAGE_AWS_REGION, region: STORAGE_AWS_REGION,
connectionUrl: `postgres://${STORAGE_PG_USERNAME}:${STORAGE_PG_PASSWORD}@${STORAGE_HOST}:${STORAGE_PORT}/${STORAGE_DB}`, connectionUrl: `postgres://${STORAGE_PG_USERNAME}:${STORAGE_PG_PASSWORD}@${STORAGE_HOST}:${STORAGE_PORT}/${STORAGE_DB}`,
db: STORAGE_DB, db: STORAGE_DB,
user: STORAGE_RETHINK_USER,
password: STORAGE_RETHINK_USER,
}, },
documents: DOCUMENTS documents: DOCUMENTS