Create example.env

This commit is contained in:
RipleyBooya 2025-03-01 16:44:44 +01:00 committed by GitHub
parent 388a341520
commit 3e8861ccfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

14
example.env Normal file
View file

@ -0,0 +1,14 @@
TZ="Europe/Paris"
SSH_HOST="ssh_target_server_fqdn_or_IP"
SSH_USER="ssh_user"
REMOTE_PORTS="127.0.0.1:5432 127.0.0.1:3306 127.0.0.1:xxxx"
LOCAL_PORTS="5432 3306 xxxx"
TAILSCALE_PARAM="--reset --auth-key=\"tskey-client-XXXXXXXXXXXXXXXXX-YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY?ephemeral=true&preauthorized=true\" --advertise-tags=tag:my_tag --hostname=DESIRED_TS_HOSTNAME" # watch out for "" escape here around tskey-client !
KEY_PATH="/path/to/id_rsa"
DB_NAME="*" # or a single Database Name if not using the same user for all db (NB: needs to create a container for each or play with /etc/pgbouncer/pgbouncer.ini inside the container/mounted file)
DB_USER="db_username"
DB_PASSWORD="db_user_password"
DB_HOST="db_target_server_fqdn_or_ip"
POOL_MODE="transaction"
MAX_CLIENT_CONN="200"
DEFAULT_POOL_SIZE="50"