mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-10-01 06:25:34 +00:00
feat: docs tweaks & standalone frontend
This commit is contained in:
@@ -117,7 +117,7 @@ echo " IPv4: ${IPV4}"
|
||||
[[ -n "$IPV6" ]] && echo " IPv6: ${IPV6}"
|
||||
echo ""
|
||||
|
||||
read -p "Enter your PDS domain (e.g., pds.example.com): " PDS_DOMAIN
|
||||
read -p "Enter your PDS domain (eg., pds.example.com): " PDS_DOMAIN
|
||||
if [[ -z "$PDS_DOMAIN" ]]; then
|
||||
log_error "Domain cannot be empty"
|
||||
exit 1
|
||||
@@ -296,7 +296,7 @@ fi
|
||||
|
||||
log_info "Cloning Tranquil PDS..."
|
||||
if [[ ! -d /opt/tranquil-pds ]]; then
|
||||
git clone https://tangled.org/lewis.moe/bspds-sandbox /opt/tranquil-pds
|
||||
git clone https://tangled.org/tranquil.farm/tranquil-pds /opt/tranquil-pds
|
||||
else
|
||||
cd /opt/tranquil-pds && git pull
|
||||
fi
|
||||
@@ -417,7 +417,6 @@ Type=simple
|
||||
User=tranquil-pds
|
||||
Group=tranquil-pds
|
||||
EnvironmentFile=/etc/tranquil-pds/tranquil-pds.env
|
||||
Environment=FRONTEND_DIR=/var/lib/tranquil-pds/frontend
|
||||
ExecStart=/usr/local/bin/tranquil-pds
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
@@ -479,7 +478,7 @@ log_success "Firewall configured"
|
||||
echo ""
|
||||
log_info "Obtaining wildcard SSL certificate..."
|
||||
echo ""
|
||||
echo "User handles are served as subdomains (e.g., alice.${PDS_DOMAIN}),"
|
||||
echo "User handles are served as subdomains (eg., alice.${PDS_DOMAIN}),"
|
||||
echo "so you need a wildcard certificate. This requires DNS validation."
|
||||
echo ""
|
||||
echo "You'll need to add a TXT record to your DNS when prompted."
|
||||
|
||||
@@ -48,15 +48,15 @@ start_infra() {
|
||||
--name "${CONTAINER_PREFIX}-minio" \
|
||||
-e MINIO_ROOT_USER=minioadmin \
|
||||
-e MINIO_ROOT_PASSWORD=minioadmin \
|
||||
-P \
|
||||
-p 9000 \
|
||||
--label tranquil_pds_test=true \
|
||||
minio/minio:latest server /data >/dev/null
|
||||
cgr.dev/chainguard/minio:latest server /data >/dev/null
|
||||
echo "Starting Valkey..."
|
||||
$CONTAINER_CMD run -d \
|
||||
--name "${CONTAINER_PREFIX}-valkey" \
|
||||
-P \
|
||||
--label tranquil_pds_test=true \
|
||||
valkey/valkey:8-alpine >/dev/null
|
||||
valkey/valkey:9-alpine >/dev/null
|
||||
echo "Waiting for services to be ready..."
|
||||
sleep 2
|
||||
PG_PORT=$($CONTAINER_CMD port "${CONTAINER_PREFIX}-postgres" 5432 | head -1 | cut -d: -f2)
|
||||
@@ -86,10 +86,10 @@ start_infra() {
|
||||
echo "Creating MinIO buckets..."
|
||||
$CONTAINER_CMD run --rm --network host \
|
||||
-e MC_HOST_minio="http://minioadmin:minioadmin@127.0.0.1:${MINIO_PORT}" \
|
||||
minio/mc:latest mb minio/test-bucket --ignore-existing >/dev/null 2>&1 || true
|
||||
cgr.dev/chainguard/minio-client:latest-dev mb minio/test-bucket --ignore-existing >/dev/null 2>&1 || true
|
||||
$CONTAINER_CMD run --rm --network host \
|
||||
-e MC_HOST_minio="http://minioadmin:minioadmin@127.0.0.1:${MINIO_PORT}" \
|
||||
minio/mc:latest mb minio/test-backups --ignore-existing >/dev/null 2>&1 || true
|
||||
cgr.dev/chainguard/minio-client:latest-dev mb minio/test-backups --ignore-existing >/dev/null 2>&1 || true
|
||||
cat > "$INFRA_FILE" << EOF
|
||||
export DATABASE_URL="postgres://postgres:postgres@127.0.0.1:${PG_PORT}/postgres"
|
||||
export TEST_DB_PORT="${PG_PORT}"
|
||||
|
||||
Reference in New Issue
Block a user