Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP. Co-authored-by: Cursor <cursoragent@cursor.com>
234 lines
9.6 KiB
Plaintext
234 lines
9.6 KiB
Plaintext
|
|
=== systemctl cat douyinweb-api.service 2>/dev/null ===
|
|
# /etc/systemd/system/douyinweb-api.service
|
|
[Unit]
|
|
Description=DouyinWEB FastAPI
|
|
After=network.target douyinweb-pb.service seaweed-s3.service
|
|
|
|
[Service]
|
|
Environment=TZ=Asia/Shanghai
|
|
Type=simple
|
|
WorkingDirectory=/opt/douyinWEB/backend
|
|
Environment=DY_PB_URL=http://127.0.0.1:8092
|
|
Environment=DY_S3_ENABLED=true
|
|
Environment=DY_S3_ENDPOINT=http://127.0.0.1:8333
|
|
Environment=DY_S3_PUBLIC_BASE=https://s3.nomadro.com
|
|
Environment=DY_S3_ACCESS_KEY=douyin
|
|
Environment=DY_S3_SECRET_KEY=douyinweb_s3_2026
|
|
Environment=DY_S3_BUCKET=douyin-covers
|
|
Environment=DY_S3_REGION=us-east-1
|
|
Environment=DY_YOUTUBE_SVC_URL=http://127.0.0.1:8020
|
|
ExecStart=/opt/douyinWEB/backend/.venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 8014
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
# /etc/systemd/system/douyinweb-api.service.d/override.conf
|
|
[Service]
|
|
ExecStart=
|
|
ExecStart=/opt/douyinWEB/backend/.venv/bin/python -m uvicorn app.main:app --host 127.0.0.1 --port 8014
|
|
|
|
=== systemctl cat hackrobot-pb.service 2>/dev/null ===
|
|
# /etc/systemd/system/hackrobot-pb.service
|
|
[Unit]
|
|
Description=HackRobot PocketBase Backend
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/opt/wauto/pocketbase
|
|
ExecStart=/opt/wauto/pocketbase/pocketbase serve --http=127.0.0.1:8090
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
=== systemctl cat pocketbase.service 2>/dev/null ===
|
|
# /etc/systemd/system/pocketbase.service
|
|
[Unit]
|
|
Description=PocketBase
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/opt/pocketbase/pocketbase serve --http=127.0.0.1:8090
|
|
WorkingDirectory=/opt/pocketbase
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
=== systemctl cat tiktok-promo-backend.service 2>/dev/null | head -40 ===
|
|
# /etc/systemd/system/tiktok-promo-backend.service
|
|
[Unit]
|
|
Description=TikTok Promo FastAPI
|
|
After=tiktok-promo-pocketbase.service
|
|
Requires=tiktok-promo-pocketbase.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/tiktokWEB/backend
|
|
EnvironmentFile=/opt/tiktokWEB/.env
|
|
ExecStart=/opt/tiktokWEB/backend/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8015
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
=== systemctl cat xauto-web.service 2>/dev/null | head -40 ===
|
|
# /etc/systemd/system/xauto-web.service
|
|
[Unit]
|
|
Description=XAuto FastAPI
|
|
After=network.target xauto-pocketbase.service
|
|
Requires=xauto-pocketbase.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/xauto
|
|
Environment=PYTHONPATH=/opt/xauto
|
|
ExecStart=/opt/xauto/venv/bin/uvicorn backend.main:app --host 127.0.0.1 --port 8000
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
=== grep -rni 'ADMIN\|hackrobot\|password' /opt/wauto/deploy /opt/wauto/pocketbase 2>/dev/null ===
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:399:interface PasswordField extends core.PasswordField{} // merge
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:401: * {@inheritDoc core.PasswordField}
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:405:declare class PasswordField implements core.PasswordField {
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:406: constructor(data?: Partial<core.PasswordField>)
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:716: * auth records emails like verification, password reset, etc.
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:721: let sendRecordPasswordReset: mails.sendRecordPasswordReset
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:1022: * The authMethod argument specify the name of the current authentication method (eg. password, oauth2, etc.)
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:1128:/** @group PocketBase */declare function onMailerRecordPasswordResetSend(handler: (e: core.MailerRecordEvent) => void, ...tags: string[]): void
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:1157:/** @group PocketBase */declare function onRecordAuthWithPasswordRequest(handler: (e: core.RecordAuthWithPasswordRequestEvent) => void, ...tags: string[]): void
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:1159:/** @group PocketBase */declare function onRecordConfirmPasswordResetRequest(handler: (e: core.RecordConfirmPasswordResetRequestEvent) => void, ...tags: string[]): void
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:1170:/** @group PocketBase */declare function onRecordRequestPasswordResetRequest(handler: (e: core.RecordRequestPasswordResetRequestEvent) => void, ...tags: string[]): void
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6081: * (auth, file, verifyEmail, changeEmail, passwordReset types).
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6680: * OnMailerBeforeRecordResetPasswordSend hook is triggered when
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6681: * sending a password reset email to an auth record, allowing
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6688: onMailerRecordPasswordResetSend(...tags: string[]): (hook.TaggedHook<MailerRecordEvent | undefined>)
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6783: * OnRecordAuthWithPasswordRequest hook is triggered on each
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6784: * Record auth with password API request.
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6786: * [RecordAuthWithPasswordRequestEvent.Record] could be nil if no matching identity is found, allowing
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6787: * you to manually locate a different Record model (by reassigning [RecordAuthWithPasswordRequestEvent.Record]).
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6793: onRecordAuthWithPasswordRequest(...tags: string[]): (hook.TaggedHook<RecordAuthWithPasswordRequestEvent | undefined>)
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6822: * OnRecordRequestPasswordResetRequest hook is triggered on
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6823: * each Record request password reset API request.
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6826: * completely different password reset behavior.
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6832: onRecordRequestPasswordResetRequest(...tags: string[]): (hook.TaggedHook<RecordRequestPasswordResetRequestEvent | undefined>)
|
|
/opt/wauto/pocketbase/pb_data/types.d.ts:6834: * OnRecordConfirmPasswordResetRequest hook is triggered on
|
|
|
|
=== cat /opt/tiktokWEB/backend/.env 2>/dev/null | grep -iE 'admin|user|pass|auth' | grep -vi o ===
|
|
|
|
|
|
=== ls /opt/tiktokWEB/ ===
|
|
backend
|
|
deploy
|
|
docker-compose.yml
|
|
frontend
|
|
pocketbase
|
|
README.md
|
|
scripts
|
|
|
|
=== grep -rni 'ADMIN_USERNAME\|admin_password\|hackrobot' /opt/tiktokWEB 2>/dev/null | head -2 ===
|
|
/opt/tiktokWEB/.env:6:POCKETBASE_ADMIN_PASSWORD=zl0fFIy7giSARNPavgDRHk0R
|
|
/opt/tiktokWEB/backend/.env.example:5:POCKETBASE_ADMIN_PASSWORD=ChangeMe123!
|
|
/opt/tiktokWEB/backend/app/pocketbase.py:23: "password": settings.pocketbase_admin_password,
|
|
/opt/tiktokWEB/backend/app/config.py:15: pocketbase_admin_password: str = "ChangeMe123!"
|
|
/opt/tiktokWEB/.deploy-secrets:2:POCKETBASE_ADMIN_PASSWORD=zl0fFIy7giSARNPavgDRHk0R
|
|
/opt/tiktokWEB/README.md:58:POCKETBASE_ADMIN_PASSWORD=ChangeMe123!
|
|
/opt/tiktokWEB/docker-compose.yml:28: POCKETBASE_ADMIN_PASSWORD: ${POCKETBASE_ADMIN_PASSWORD:-ChangeMe123!}
|
|
/opt/tiktokWEB/deploy/DEPLOY.md:46:POCKETBASE_ADMIN_PASSWORD=<强密码>
|
|
|
|
=== grep -rni 'ADMIN_USERNAME\|admin_password\|hackrobot' /opt/xauto 2>/dev/null | head -20 ===
|
|
/opt/xauto/.env:4:POCKETBASE_ADMIN_PASSWORD=adminadmin123
|
|
|
|
/opt/xauto/backend/config.py:11:POCKETBASE_ADMIN_PASSWORD = os.getenv("POCKETBASE_ADMIN_PASSWORD", "adminadmin123")
|
|
|
|
/opt/xauto/backend/services/pocketbase_client.py:9:from backend.config import POCKETBASE_ADMIN_EMAIL, POCKETBASE_ADMIN_PASSWORD, POCKETBASE_URL
|
|
|
|
/opt/xauto/backend/services/pocketbase_client.py:29: json={"identity": POCKETBASE_ADMIN_EMAIL, "password": POCKETBASE_ADMIN_PASSWORD},
|
|
|
|
/opt/xauto/backend/services/pocketbase_client.py:34: json={"identity": POCKETBASE_ADMIN_EMAIL, "password": POCKETBASE_ADMIN_PASSWORD},
|
|
|
|
/opt/xauto/.env.example:4:POCKETBASE_ADMIN_PASSWORD=adminadmin123
|
|
|
|
=== cat /opt/umami/docker-compose.yml 2>/dev/null ===
|
|
# Umami analytics ΓÇö bind localhost only; Caddy terminates TLS at umami.nomadro.com
|
|
services:
|
|
umami:
|
|
image: ghcr.io/umami-software/umami:postgresql-latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:3010:3000"
|
|
environment:
|
|
DATABASE_URL: postgresql://umami:${POSTGRES_PASSWORD}@db:5432/umami
|
|
APP_SECRET: ${APP_SECRET}
|
|
DISABLE_TELEMETRY: "1"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
init: true
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:3000/api/heartbeat || exit 1"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 40s
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: umami
|
|
POSTGRES_USER: umami
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- umami_db_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U umami -d umami"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
umami_db_data:
|
|
|
|
=== cat /opt/ntfy/docker-compose.yml 2>/dev/null || ls /opt/ntfy/ ===
|
|
# ntfy push notifications ΓÇö bind localhost; Caddy at ntfy.nomadro.com
|
|
services:
|
|
ntfy:
|
|
image: binwiederhier/ntfy:latest
|
|
restart: unless-stopped
|
|
command: serve
|
|
ports:
|
|
- "127.0.0.1:2586:80"
|
|
environment:
|
|
TZ: UTC
|
|
volumes:
|
|
- ./server.yml:/etc/ntfy/server.yml:ro
|
|
- ntfy_cache:/var/cache/ntfy
|
|
- ntfy_data:/var/lib/ntfy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:80/v1/health | grep -q '\"healthy\":true' || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|
|
|
|
volumes:
|
|
ntfy_cache:
|
|
ntfy_data:
|
|
|
|
=== cd /opt/douyinWEB/backend && .venv/bin/python -c "from app import db; m=db.get_settings_ma ===
|
|
user hackrobot
|
|
hash 8b87c6946d3ddb48
|