Skip to content
Snippets Groups Projects
Commit 046c2ade authored by Dan Notestein's avatar Dan Notestein
Browse files

Make hivemind's PostgREST server use the hivemind_user role instead of

the hivemind role.  We set the statement timeout on the hivemind_user
role, so this is needed to make the HIVEMIND_STATEMENT_TIMEOUT in the
.env file work
parent af89962a
No related branches found
No related tags found
2 merge requests!82Make hivemind's PostgREST server use the hivemind_user role,!81Make hivemind's PostgREST server use the hivemind_user role instead of
Pipeline #117830 failed
......@@ -58,6 +58,7 @@ services:
host haf_block_log haf_admin ${COMPOSE_PROJECT_NAME}-hivemind-server-1.${NETWORK_NAME} trust\n
host haf_block_log hivemind ${COMPOSE_PROJECT_NAME}-hivemind-server-1.${NETWORK_NAME} trust\n
host haf_block_log hivemind ${COMPOSE_PROJECT_NAME}-hivemind-postgrest-server-1.${NETWORK_NAME} trust\n
host haf_block_log hivemind_user ${COMPOSE_PROJECT_NAME}-hivemind-postgrest-server-1.${NETWORK_NAME} trust\n
host haf_block_log haf_admin ${COMPOSE_PROJECT_NAME}-hivemind-uninstall-1.${NETWORK_NAME} trust\n
......
......@@ -77,10 +77,10 @@ services:
environment:
PGRST_ADMIN_SERVER_PORT: 3001
PGRST_SERVER_PORT: 8080
PGRST_DB_URI: "postgresql://hivemind@haf/haf_block_log?application_name=hive-mind-postgrest" # warning hivemind improperly matches all connections starting from `hivemind` and crashes if they are made externally (not from python)
PGRST_DB_URI: "postgresql://hivemind_user@haf/haf_block_log?application_name=hive-mind-postgrest" # warning hivemind improperly matches all connections starting from `hivemind` and crashes if they are made externally (not from python)
PGRST_DB_SCHEMA: hivemind_endpoints
# PGRST_DB_ROOT_SPEC: home
PGRST_DB_ANON_ROLE: hivemind
PGRST_DB_ANON_ROLE: hivemind_user
PGRST_DB_POOL: 40
PGRST_DB_POOL_ACQUISITION_TIMEOUT: 10
PGRST_OPENAPI_MODE: "disabled" # unclear why this is set, I guess because we currently only support json-rpc?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment