mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
fix(infra): point default RDS host to neon server Tailscale IP
- Redirected the default RDS_HOST/PGHOST database connection default to neon-64gb (100.92.88.64) across all Python shims, shell wrappers, and Rust probes. - Cleaned up local defaults in rds_connect.py, sync_wiki_to_rds.py, dataset_ingest_rds.py, batch_embed_artifacts.py, db.rs, cache-offload.sh, db-consolidate.sh, backup.sh, and ene-api-wrapper.sh. Build: 0 jobs, 0 errors (lake build)
This commit is contained in:
parent
ab6fe3e69b
commit
e6bbb612d0
9 changed files with 9 additions and 9 deletions
|
|
@ -13,7 +13,7 @@ if [[ ! -x "$BIN" ]]; then
|
|||
exit 127
|
||||
fi
|
||||
|
||||
export RDS_HOST="${RDS_HOST:-localhost}"
|
||||
export RDS_HOST="${RDS_HOST:-100.92.88.64}"
|
||||
export RDS_PORT="${RDS_PORT:-5432}"
|
||||
export RDS_USER="${RDS_USER:-postgres}"
|
||||
export RDS_DB="${RDS_DB:-postgres}"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ pub struct DbConfig {
|
|||
impl DbConfig {
|
||||
pub fn from_env() -> Self {
|
||||
let host = env::var("RDS_HOST")
|
||||
.unwrap_or_else(|_| "localhost".to_string());
|
||||
.unwrap_or_else(|_| "100.92.88.64".to_string());
|
||||
let user = env::var("RDS_USER").unwrap_or_else(|_| "postgres".to_string());
|
||||
let password = env::var("RDS_PASSWORD").unwrap_or_else(|_| "".to_string());
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ from shim.utils import sha256_text, utc_now
|
|||
BATCH_SIZE = 50
|
||||
TOKEN_REFRESH_SEC = 600
|
||||
|
||||
HOST = os.environ.get("RDS_HOST", "localhost")
|
||||
HOST = os.environ.get("RDS_HOST", "100.92.88.64")
|
||||
PORT = int(os.environ.get("RDS_PORT", "5432"))
|
||||
USER = os.environ.get("RDS_USER", "postgres")
|
||||
DB = os.environ.get("RDS_DB", os.environ.get("RDS_DBNAME", "postgres"))
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(mess
|
|||
log = logging.getLogger("dataset_ingest_rds")
|
||||
|
||||
# Config
|
||||
RDS_HOST = os.environ.get("RDS_HOST", "localhost")
|
||||
RDS_HOST = os.environ.get("RDS_HOST", "100.92.88.64")
|
||||
|
||||
STACK_ROOT = Path(os.environ.get("STACK_ROOT", "/home/researcher/stack"))
|
||||
DATA_DIR = STACK_ROOT / "shared-data" / "data" / "ingested_datasets" / "2026-05-18"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ def _resolve_params() -> dict:
|
|||
params["sslmode"] = v
|
||||
return params
|
||||
|
||||
host = os.environ.get("RDS_HOST", os.environ.get("PGHOST", "localhost"))
|
||||
host = os.environ.get("RDS_HOST", os.environ.get("PGHOST", "100.92.88.64"))
|
||||
port = int(os.environ.get("RDS_PORT", os.environ.get("PGPORT", "5432")))
|
||||
user = os.environ.get("RDS_USER", os.environ.get("PGUSER", "postgres"))
|
||||
dbname = os.environ.get("RDS_DB", os.environ.get("RDS_DBNAME", os.environ.get("PGDATABASE", "postgres")))
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ from shim.utils import sha256_text, utc_now
|
|||
STACK_ROOT = Path(os.environ.get("STACK_ROOT", "/home/allaun/Research Stack"))
|
||||
WIKI_ROOT = Path(os.environ.get("WIKI_ROOT", str(STACK_ROOT / "6-Documentation" / "wiki")))
|
||||
|
||||
HOST = os.environ.get("RDS_HOST", "localhost")
|
||||
HOST = os.environ.get("RDS_HOST", "100.92.88.64")
|
||||
DB = os.environ.get("RDS_DB", os.environ.get("RDS_DBNAME", "postgres"))
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ TIER0_PGDUMP="/mnt/stackcache/pgdump"
|
|||
TIER2_REMOTE="gdrive:research-stack-offload"
|
||||
TIER1_THRESHOLD_GB=2
|
||||
|
||||
RDS_HOST="${RDS_HOST:-localhost}"
|
||||
RDS_HOST="${RDS_HOST:-100.92.88.64}"
|
||||
RDS_PORT="${RDS_PORT:-5432}"
|
||||
RDS_USER="${RDS_USER:-postgres}"
|
||||
RDS_DB="${RDS_DB:-postgres}"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
|
|||
export AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-garage}"
|
||||
export AWS_ENDPOINT_URL="${AWS_ENDPOINT_URL:-http://localhost:3900}"
|
||||
|
||||
RDS_HOST="${RDS_HOST:-localhost}"
|
||||
RDS_HOST="${RDS_HOST:-100.92.88.64}"
|
||||
RDS_PORT="${RDS_PORT:-5432}"
|
||||
RDS_USER="${RDS_USER:-postgres}"
|
||||
RDS_DB="${RDS_DB:-postgres}"
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ fi
|
|||
export AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION
|
||||
export RESTIC_REPOSITORY RESTIC_PASSWORD_FILE
|
||||
|
||||
RDS_HOST="${RDS_HOST:-localhost}"
|
||||
RDS_HOST="${RDS_HOST:-100.92.88.64}"
|
||||
RDS_PORT="${RDS_PORT:-5432}"
|
||||
RDS_USER="${RDS_USER:-postgres}"
|
||||
RDS_DB="${RDS_DB:-postgres}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue