mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 21:43:08 +00:00
finish pgbouncer integration
This commit is contained in:
parent
c8d5215870
commit
328d08781a
@ -1333,6 +1333,7 @@ PGconn *PostgreSQL::getPgConn(OverrideMode m) {
|
|||||||
if (m == ALLOW_PGBOUNCER_OVERRIDE) {
|
if (m == ALLOW_PGBOUNCER_OVERRIDE) {
|
||||||
char *connStr = getenv("PGBOUNCER_CONNSTR");
|
char *connStr = getenv("PGBOUNCER_CONNSTR");
|
||||||
if (connStr != NULL) {
|
if (connStr != NULL) {
|
||||||
|
fprintf(stderr, "PGBouncer Override\n");
|
||||||
return PQconnectdb(connStr);
|
return PQconnectdb(connStr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ echo "{
|
|||||||
\"inot\",
|
\"inot\",
|
||||||
\"nat64\"
|
\"nat64\"
|
||||||
],
|
],
|
||||||
\"controllerDbPath\": \"postgres:host=${ZT_DB_HOST} port=${ZT_DB_PORT} dbname=ztc user=${ZT_DB_USER} password=${ZT_DB_PASSWORD}\"
|
\"controllerDbPath\": \"postgres:host=${ZT_DB_HOST} port=${ZT_DB_PORT} dbname=ztc user=${ZT_DB_USER} password=${ZT_DB_PASSWORD} sslmode=require sslcert=${DB_CLIENT_CERT} sslkey=${DB_CLIENT_KEY} sslrootcert=${DB_SERVER_CA}\"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
" > /var/lib/zerotier-one/local.conf
|
" > /var/lib/zerotier-one/local.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user