initial
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
# Shared config for all prod scripts. Source this in each script:
|
||||
# source "$(dirname "$0")/config.sh"
|
||||
#
|
||||
# Customize here when the server IP / domains change — all other scripts pick
|
||||
# the values up automatically.
|
||||
|
||||
export PROD_SERVER="46.225.156.249"
|
||||
export PROD_USER="prox"
|
||||
|
||||
# Paths on the remote server.
|
||||
export PROD_SUPABASE_DIR="/opt/supabase"
|
||||
export PROD_LIVEKIT_DIR="/opt/livekit"
|
||||
|
||||
# Public domains (served via Caddy on the same VPS).
|
||||
export PROD_DOMAIN_SUPABASE="supabase.netralax.cloud"
|
||||
export PROD_DOMAIN_LIVEKIT="livekit.netralax.cloud"
|
||||
|
||||
# SSH helper: forwards the standard `-o StrictHostKeyChecking=accept-new` so
|
||||
# first connections don't prompt. Override SSH_OPTS from the environment if
|
||||
# you need a jumphost etc.
|
||||
export SSH_OPTS="${SSH_OPTS:--o StrictHostKeyChecking=accept-new}"
|
||||
export SSH_HOST="${PROD_USER}@${PROD_SERVER}"
|
||||
|
||||
remote() {
|
||||
# shellcheck disable=SC2086
|
||||
ssh ${SSH_OPTS} "${SSH_HOST}" "$@"
|
||||
}
|
||||
|
||||
remote_tty() {
|
||||
# shellcheck disable=SC2086
|
||||
ssh ${SSH_OPTS} -t "${SSH_HOST}" "$@"
|
||||
}
|
||||
Reference in New Issue
Block a user