=== systemctl cat douyinweb-pb.service 2>/dev/null === # /etc/systemd/system/douyinweb-pb.service [Unit] Description=DouyinWEB PocketBase After=network.target [Service] Type=simple WorkingDirectory=/opt/douyinWEB/pb ExecStart=/opt/douyinWEB/pb/pocketbase serve --http=0.0.0.0:8092 Restart=always RestartSec=3 [Install] WantedBy=multi-user.target === grep -rni 'auth\|login\|admin' /opt/tiktokWEB/backend/app/config.py /opt/tiktokWEB/backend/app/ === /opt/tiktokWEB/backend/app/config.py:12: admin_token: str = "dev-admin-token-change-me" /opt/tiktokWEB/backend/app/config.py:14: pocketbase_admin_email: str = "admin@tiktoklive.local" /opt/tiktokWEB/backend/app/config.py:15: pocketbase_admin_password: str = "ChangeMe123!" /opt/tiktokWEB/backend/app/main.py:41:def verify_admin(x_admin_token: Optional[str] = Header(default=None)) -> None: /opt/tiktokWEB/backend/app/main.py:44: if x_admin_token != settings.admin_token: /opt/tiktokWEB/backend/app/main.py:45: raise HTTPException(status_code=401, detail="Invalid admin token") /opt/tiktokWEB/backend/app/main.py:67:@app.put("/api/admin/downloads/{product}") /opt/tiktokWEB/backend/app/main.py:71: _: None = Depends(verify_admin), === head -40 /opt/tiktokWEB/backend/app/config.py 2>/dev/null === from __future__ import annotations from typing import List from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): model_config = SettingsConfigDict(env_file=".env", extra="ignore") debug_mode: bool = False admin_token: str = "dev-admin-token-change-me" pocketbase_url: str = "http://127.0.0.1:8090" pocketbase_admin_email: str = "admin@tiktoklive.local" pocketbase_admin_password: str = "ChangeMe123!" cors_origins: str = "http://localhost:3000" @property def cors_origin_list(self) -> List[str]: return [o.strip() for o in self.cors_origins.split(",") if o.strip()] settings = Settings() === cat /opt/ntfy/server.yml 2>/dev/null === base-url: "https://ntfy.nomadro.com" listen-http: ":80" behind-proxy: true cache-file: "/var/lib/ntfy/cache.db" cache-duration: "12h" auth-file: "/var/lib/ntfy/auth.db" auth-default-access: "deny-all" enable-login: true attachment-cache-dir: "/var/lib/ntfy/attachments" attachment-total-size-limit: "100M" attachment-file-size-limit: "15M" attachment-expiry-duration: "3h" keepalive-interval: "45s" manager-interval: "1m" === sqlite3 /opt/umami/ 2>/dev/null; docker exec umami-db-1 psql -U umami -d umami -c "select usern === === /opt/wauto/pocketbase/pocketbase superuser list 2>/dev/null || echo 'no list cmd' === Manage superusers Usage: pocketbase superuser [command] Available Commands: create Creates a new superuser delete Deletes an existing superuser otp Creates a new OTP for the specified superuser update Changes the password of a single superuser upsert Creates, or updates if email exists, a single superuser Flags: -h, --help help for superuser Global Flags: --automigrate enable/disable auto migrations (default true) --dev enable dev mode, aka. printing logs and sql statements to the console --dir string the PocketBase data directory (default "/opt/wauto/pocketbase/pb_data") --encryptionEnv string the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) --hooksDir string the directory with the JS app hooks --hooksPool int the total prewarm goja.Runtime instances for the JS app hooks execution (default 15) --hooksWatch auto restart the app on pb_hooks file change; it has no effect on Windows (default true) --indexFallback fallback the request to index.html on missing static path, e.g. when pretty urls are used with SPA (default true) --migrationsDir string the directory with the user defined migrations --publicDir string the directory to serve static files (default "/opt/wauto/pocketbase/pb_public") --queryTimeout int the default SELECT queries timeout in seconds (default 30) Use "pocketbase superuser [command] --help" for more information about a command. === /opt/pocketbase/pocketbase superuser upsert --help 2>&1 | head -15 === Creates, or updates if email exists, a single superuser Usage: pocketbase superuser upsert [flags] Examples: superuser upsert test@example.com 1234567890 Flags: -h, --help help for upsert Global Flags: --automigrate enable/disable auto migrations (default true) --dev enable dev mode, aka. printing logs and sql statements to the console --dir string the PocketBase data directory (default "/opt/pocketbase/pb_data") === /opt/tiktokWEB/pocketbase/pocketbase superuser upsert --help 2>&1 | head -10 === Creates, or updates if email exists, a single superuser Usage: pocketbase superuser upsert [flags] Examples: superuser upsert test@example.com 1234567890 Flags: -h, --help help for upsert === ls /opt/tiktokWEB/pocketbase/ 2>/dev/null === CHANGELOG.md LICENSE.md pb_data pb_migrations pocketbase === systemctl cat tiktok-promo-pocketbase.service 2>/dev/null === # /etc/systemd/system/tiktok-promo-pocketbase.service [Unit] Description=TikTok Promo PocketBase After=network.target [Service] Type=simple WorkingDirectory=/opt/tiktokWEB/pocketbase ExecStart=/opt/tiktokWEB/pocketbase/pocketbase serve --dir=/opt/tiktokWEB/pocketbase/pb_data --migrationsDir=/opt/tiktokWEB/pocketbase/pb_migrations --http=127.0.0.1:8095 Restart=always RestartSec=3 [Install] WantedBy=multi-user.target === systemctl cat xauto-pocketbase.service 2>/dev/null === # /etc/systemd/system/xauto-pocketbase.service [Unit] Description=XAuto PocketBase After=network.target [Service] Type=simple WorkingDirectory=/opt/xauto/pocketbase ExecStart=/opt/xauto/pocketbase/pocketbase serve --http=127.0.0.1:8091 Restart=always RestartSec=3 [Install] WantedBy=multi-user.target === grep -rni 'site.*login\|admin_user\|session_auth' /opt/tiktokWEB/backend 2>/dev/null | head -15 ===