[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79X2W62P7545426VT0NHXT5":3,"skill-same:01M79X2W62P7545426VT0NHXT5":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M79X2W62P7545426VT0NHXT5","PocketBase Deploy",null,"Production deployment for PocketBase. Use when deploying PocketBase to a server, setting up Docker, configuring systemd, reverse proxy (nginx\u002FCaddy), TLS, SMTP, backups, S3 storage, rate limiting, or hardening for production. Provides ready-to-use configs.","KrismithReddy12\u002Fclaude-code-templates","KrismithReddy12","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182916557?v=4","01M79T8DNGJRHG48G3H3Q02MK8","01M79TA8ZWV2PP7R4ARWVYWZFE",0,"MIT","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fpocketbase\u002Fpb-deploy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"PocketBase Deploy\"\ndescription: \"Production deployment for PocketBase. Use when deploying PocketBase to a server, setting up Docker, configuring systemd, reverse proxy (nginx\u002FCaddy), TLS, SMTP, backups, S3 storage, rate limiting, or hardening for production. Provides ready-to-use configs.\"\n---\n\n# PocketBase Production Deployment\n\n## Single Binary Deployment\n\nPocketBase is a single binary. No runtime dependencies.\n\n```bash\n# Download\nwget https:\u002F\u002Fgithub.com\u002Fpocketbase\u002Fpocketbase\u002Freleases\u002Fdownload\u002Fv0.X.X\u002Fpocketbase_0.X.X_linux_amd64.zip\nunzip pocketbase_*.zip\nchmod +x pocketbase\n\n# Run\n.\u002Fpocketbase serve --http=\"0.0.0.0:8090\"\n```\n\nData stored in `pb_data\u002F` (SQLite DB, uploaded files, logs).\n\n## systemd Service\n\n```ini\n# \u002Fetc\u002Fsystemd\u002Fsystem\u002Fpocketbase.service\n[Unit]\nDescription=PocketBase\nAfter=network.target\n\n[Service]\nType=simple\nUser=pocketbase\nGroup=pocketbase\nLimitNOFILE=4096\nRestart=always\nRestartSec=5s\nWorkingDirectory=\u002Fopt\u002Fpocketbase\nExecStart=\u002Fopt\u002Fpocketbase\u002Fpocketbase serve --http=\"127.0.0.1:8090\"\n\n# Security hardening\nNoNewPrivileges=true\nProtectSystem=strict\nProtectHome=true\nReadWritePaths=\u002Fopt\u002Fpocketbase\u002Fpb_data \u002Fopt\u002Fpocketbase\u002Fpb_hooks \u002Fopt\u002Fpocketbase\u002Fpb_migrations\nPrivateTmp=true\n\n# Memory limit (adjust to your server)\n# MemoryMax=512M\n\n[Install]\nWantedBy=multi-user.target\n```\n\n```bash\n# Setup\nsudo useradd --system --no-create-home pocketbase\nsudo mkdir -p \u002Fopt\u002Fpocketbase\nsudo cp pocketbase \u002Fopt\u002Fpocketbase\u002F\nsudo chown -R pocketbase:pocketbase \u002Fopt\u002Fpocketbase\n\n# Enable & start\nsudo systemctl daemon-reload\nsudo systemctl enable pocketbase\nsudo systemctl start pocketbase\nsudo systemctl status pocketbase\n\n# Logs\nsudo journalctl -u pocketbase -f\n```\n\n### File descriptor limit\n\nFor high-traffic deployments, increase the limit:\n\n```ini\n# In the [Service] section:\nLimitNOFILE=65535\n```\n\nAlso set system-wide in `\u002Fetc\u002Fsecurity\u002Flimits.conf`:\n```\npocketbase soft nofile 65535\npocketbase hard nofile 65535\n```\n\n### Go memory limit\n\nFor constrained environments:\n\n```ini\nEnvironment=GOMEMLIMIT=400MiB\n```\n\n## Docker\n\n### Dockerfile\n\n```dockerfile\nFROM alpine:latest\n\nARG PB_VERSION=0.25.0\n\nRUN apk add --no-cache \\\n    unzip \\\n    ca-certificates\n\n# Download and install PocketBase\n# NOTE: verify the checksum in production — see https:\u002F\u002Fgithub.com\u002Fpocketbase\u002Fpocketbase\u002Freleases\nADD https:\u002F\u002Fgithub.com\u002Fpocketbase\u002Fpocketbase\u002Freleases\u002Fdownload\u002Fv${PB_VERSION}\u002Fpocketbase_${PB_VERSION}_linux_amd64.zip \u002Ftmp\u002Fpb.zip\nRUN unzip \u002Ftmp\u002Fpb.zip -d \u002Fpb\u002F && rm \u002Ftmp\u002Fpb.zip\n\n# Copy hooks and migrations\nCOPY .\u002Fpb_hooks \u002Fpb\u002Fpb_hooks\nCOPY .\u002Fpb_migrations \u002Fpb\u002Fpb_migrations\n\nEXPOSE 8090\n\nCMD [\"\u002Fpb\u002Fpocketbase\", \"serve\", \"--http=0.0.0.0:8090\"]\n```\n\n### docker-compose.yml\n\n```yaml\nservices:\n  pocketbase:\n    build: .\n    ports:\n      - \"127.0.0.1:8090:8090\"  # bind to localhost only — expose via reverse proxy\n    volumes:\n      - pb_data:\u002Fpb\u002Fpb_data\n      - .\u002Fpb_hooks:\u002Fpb\u002Fpb_hooks\n      - .\u002Fpb_migrations:\u002Fpb\u002Fpb_migrations\n    restart: unless-stopped\n    healthcheck:\n      test: [\"CMD\", \"wget\", \"--no-verbose\", \"--tries=1\", \"--spider\", \"http:\u002F\u002Flocalhost:8090\u002Fapi\u002Fhealth\"]\n      interval: 30s\n      timeout: 5s\n      retries: 3\n\nvolumes:\n  pb_data:\n```\n\n## Reverse Proxy\n\n### Caddy (recommended — auto TLS)\n\n```\n# \u002Fetc\u002Fcaddy\u002FCaddyfile\nmyapp.com {\n    reverse_proxy localhost:8090\n}\n```\n\nThat's it. Caddy handles TLS certificates automatically via Let's Encrypt.\n\n### nginx\n\n```nginx\n# \u002Fetc\u002Fnginx\u002Fsites-available\u002Fpocketbase\nserver {\n    listen 80;\n    server_name myapp.com;\n    return 301 https:\u002F\u002F$server_name$request_uri;\n}\n\nserver {\n    listen 443 ssl http2;\n    server_name myapp.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fmyapp.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fmyapp.com\u002Fprivkey.pem;\n    ssl_protocols TLSv1.2 TLSv1.3;\n    ssl_ciphers HIGH:!aNULL:!MD5;\n\n    client_max_body_size 50M;\n\n    # Block public access to the admin dashboard\n    location \u002F_\u002F {\n        return 403;\n    }\n\n    location \u002F {\n        proxy_pass http:\u002F\u002F127.0.0.1:8090;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n\n        # SSE support for realtime\n        proxy_buffering off;\n        proxy_cache off;\n        proxy_read_timeout 3600s;\n    }\n}\n```\n\n**Critical for realtime**: `proxy_buffering off` and `proxy_read_timeout` must be set for SSE subscriptions to work.\n\n```bash\n# Let's Encrypt with nginx\nsudo apt install certbot python3-certbot-nginx\nsudo certbot --nginx -d myapp.com\n```\n\n## SMTP Configuration\n\nConfigure in Dashboard > Settings > Mail settings, or via hooks:\n\n```js\n\u002F\u002F pb_hooks\u002Fsettings.pb.js\nonBootstrap(function(e) {\n    var settings = e.app.settings()\n    settings.smtp.enabled = true\n    settings.smtp.host = $os.getenv(\"SMTP_HOST\")\n    settings.smtp.port = parseInt($os.getenv(\"SMTP_PORT\") || \"587\")\n    settings.smtp.username = $os.getenv(\"SMTP_USER\")\n    settings.smtp.password = $os.getenv(\"SMTP_PASS\")\n    settings.smtp.tls = true  \u002F\u002F STARTTLS\n    \u002F\u002F settings.smtp.authMethod = \"PLAIN\"  \u002F\u002F or \"LOGIN\"\n    settings.meta.senderName = \"My App\"\n    settings.meta.senderAddress = \"noreply@myapp.com\"\n    e.app.save(settings)\n    return e.next()\n})\n```\n\n## Security Hardening\n\n### Superuser MFA\n\nAlways enable MFA for superuser accounts in production:\nDashboard > Superusers > Auth options > MFA > Enable\n\n### Settings encryption key\n\nEncrypt sensitive settings (SMTP passwords, S3 keys) at rest:\n\n```bash\n.\u002Fpocketbase serve --encryptionEnv=PB_ENCRYPTION_KEY\n```\n\nSet `PB_ENCRYPTION_KEY` environment variable to a 32+ character random string. Once set, settings are encrypted in the DB. **Do not lose this key** — you won't be able to decrypt settings without it.\n\n### Rate limiting\n\nBuilt-in rate limiter (enabled by default). Configure in Dashboard > Settings > Rate limits, or:\n\n```js\nsettings.rateLimits.enabled = true\nsettings.rateLimits.rules = [\n    { label: \"*:auth*\", maxRequests: 10, duration: 300 },  \u002F\u002F 10 auth attempts per 5 min\n    { label: \"POST:\u002Fapi\u002Fcollections\u002F*\u002Frecords\", maxRequests: 50, duration: 60 },\n]\n```\n\n### Hide the Dashboard in production\n\n```bash\n.\u002Fpocketbase serve --http=\"127.0.0.1:8090\"  # bind to localhost only\n```\n\nAccess the dashboard only via SSH tunnel:\n```bash\nssh -L 8090:127.0.0.1:8090 user@server\n```\n\n## S3 Storage\n\nFor file uploads, offload to S3-compatible storage:\n\nDashboard > Settings > Files storage > S3\n\n```js\n\u002F\u002F Or via hooks:\nonBootstrap(function(e) {\n    var settings = e.app.settings()\n    settings.s3.enabled = true\n    settings.s3.bucket = $os.getenv(\"S3_BUCKET\")\n    settings.s3.region = $os.getenv(\"S3_REGION\")\n    settings.s3.endpoint = $os.getenv(\"S3_ENDPOINT\")\n    settings.s3.accessKey = $os.getenv(\"S3_ACCESS_KEY\")\n    settings.s3.secret = $os.getenv(\"S3_SECRET\")\n    settings.s3.forcePathStyle = true  \u002F\u002F for MinIO\u002FBackblaze\n    e.app.save(settings)\n    return e.next()\n})\n```\n\nCompatible providers: AWS S3, Backblaze B2, Cloudflare R2, MinIO, DigitalOcean Spaces, Wasabi.\n\n## Backups\n\n### Small databases (\u003C 1GB)\n\nUse the built-in backup feature:\n- Dashboard > Settings > Backups\n- Or via API: `POST \u002Fapi\u002Fbackups`\n- Auto-schedule: configure cron in Dashboard\n\n### Large databases\n\nThe Dashboard backup uses SQLite's online backup API (locks DB briefly). For large DBs, use:\n\n```bash\n# sqlite3 .backup command (hot backup, minimal locking)\nsqlite3 \u002Fopt\u002Fpocketbase\u002Fpb_data\u002Fdata.db \".backup '\u002Ftmp\u002Fbackup.db'\"\n\n# Then rsync to remote\nrsync -avz \u002Ftmp\u002Fbackup.db backup-server:\u002Fbackups\u002Fpocketbase\u002Fdata-$(date +%Y%m%d).db\n```\n\n**Never copy the `.db` file directly** while PocketBase is running — it may be in an inconsistent state.\n\n### Backup script\n\n```bash\n#!\u002Fbin\u002Fbash\n# \u002Fopt\u002Fpocketbase\u002Fbackup.sh\nset -euo pipefail\n\nBACKUP_DIR=\"\u002Fbackups\u002Fpocketbase\"\nDB_PATH=\"\u002Fopt\u002Fpocketbase\u002Fpb_data\u002Fdata.db\"\nDATE=$(date +%Y%m%d_%H%M%S)\n\nmkdir -p \"$BACKUP_DIR\"\n\n# Hot backup\nsqlite3 \"$DB_PATH\" \".backup '${BACKUP_DIR}\u002Fdata_${DATE}.db'\"\n\n# Also backup pb_data files (uploads, if not using S3)\ntar -czf \"${BACKUP_DIR}\u002Fpb_data_${DATE}.tar.gz\" -C \u002Fopt\u002Fpocketbase pb_data --exclude='pb_data\u002Fdata.db*'\n\n# Retain last 30 days\nfind \"$BACKUP_DIR\" -name \"data_*.db\" -mtime +30 -delete\nfind \"$BACKUP_DIR\" -name \"pb_data_*.tar.gz\" -mtime +30 -delete\n```\n\n```bash\n# Crontab: daily at 2 AM\n0 2 * * * \u002Fopt\u002Fpocketbase\u002Fbackup.sh >> \u002Fvar\u002Flog\u002Fpocketbase-backup.log 2>&1\n```\n\n## Health Check\n\n```bash\ncurl http:\u002F\u002Flocalhost:8090\u002Fapi\u002Fhealth\n# {\"code\":200,\"message\":\"API is healthy.\"}\n```\n\n## Deployment Checklist\n\n1. **Binary**: correct architecture (linux_amd64 \u002F linux_arm64)\n2. **systemd**: service enabled, LimitNOFILE set\n3. **Reverse proxy**: Caddy or nginx with TLS, proxy_buffering off for SSE\n4. **SMTP**: configured and tested (send a test verification email)\n5. **Superuser**: strong password + MFA enabled\n6. **Encryption key**: `--encryptionEnv` set for sensitive settings\n7. **Backups**: automated daily, tested restore procedure\n8. **Rate limiting**: enabled with sane defaults\n9. **File storage**: S3 configured if expecting many uploads\n10. **Monitoring**: health check endpoint monitored, journalctl logs reviewed\n11. **Firewall**: only 80\u002F443 exposed, 8090 bound to localhost\n12. **GOMEMLIMIT**: set if on constrained VPS\n","# PocketBase Production Deployment\n\n## Single Binary Deployment\n\nPocketBase is a single binary. No runtime dependencies.\n\n```bash\n# Download\nwget https:\u002F\u002Fgithub.com\u002Fpocketbase\u002Fpocketbase\u002Freleases\u002Fdownload\u002Fv0.X.X\u002Fpocketbase_0.X.X_linux_amd64.zip\nunzip pocketbase_*.zip\nchmod +x pocketbase\n\n# Run\n.\u002Fpocketbase serve --http=\"0.0.0.0:8090\"\n```\n\nData stored in `pb_data\u002F` (SQLite DB, uploaded files, logs).\n\n## systemd Service\n\n```ini\n# \u002Fetc\u002Fsystemd\u002Fsystem\u002Fpocketbase.service\n[Unit]\nDescription=PocketBase\nAfter=network.target\n\n[Service]\nType=simple\nUser=pocketbase\nGroup=pocketbase\nLimitNOFILE=4096\nRestart=always\nRestartSec=5s\nWorkingDirectory=\u002Fopt\u002Fpocketbase\nExecStart=\u002Fopt\u002Fpocketbase\u002Fpocketbase serve --http=\"127.0.0.1:8090\"\n\n# Security hardening\nNoNewPrivileges=true\nProtectSystem=strict\nProtectHome=true\nReadWritePaths=\u002Fopt\u002Fpocketbase\u002Fpb_data \u002Fopt\u002Fpocketbase\u002Fpb_hooks \u002Fopt\u002Fpocketbase\u002Fpb_migrations\nPrivateTmp=true\n\n# Memory limit (adjust to your server)\n# MemoryMax=512M\n\n[Install]\nWantedBy=multi-user.target\n```\n\n```bash\n# Setup\nsudo useradd --system --no-create-home pocketbase\nsudo mkdir -p \u002Fopt\u002Fpocketbase\nsudo cp pocketbase \u002Fopt\u002Fpocketbase\u002F\nsudo chown -R pocketbase:pocketbase \u002Fopt\u002Fpocketbase\n\n# Enable & start\nsudo systemctl daemon-reload\nsudo systemctl enable pocketbase\nsudo systemctl start pocketbase\nsudo systemctl status pocketbase\n\n# Logs\nsudo journalctl -u pocketbase -f\n```\n\n### File descriptor limit\n\nFor high-traffic deployments, increase the limit:\n\n```ini\n# In the [Service] section:\nLimitNOFILE=65535\n```\n\nAlso set system-wide in `\u002Fetc\u002Fsecurity\u002Flimits.conf`:\n```\npocketbase soft nofile 65535\npocketbase hard nofile 65535\n```\n\n### Go memory limit\n\nFor constrained environments:\n\n```ini\nEnvironment=GOMEMLIMIT=400MiB\n```\n\n## Docker\n\n### Dockerfile\n\n```dockerfile\nFROM alpine:latest\n\nARG PB_VERSION=0.25.0\n\nRUN apk add --no-cache \\\n    unzip \\\n    ca-certificates\n\n# Download and install PocketBase\n# NOTE: verify the checksum in production — see https:\u002F\u002Fgithub.com\u002Fpocketbase\u002Fpocketbase\u002Freleases\nADD https:\u002F\u002Fgithub.com\u002Fpocketbase\u002Fpocketbase\u002Freleases\u002Fdownload\u002Fv${PB_VERSION}\u002Fpocketbase_${PB_VERSION}_linux_amd64.zip \u002Ftmp\u002Fpb.zip\nRUN unzip \u002Ftmp\u002Fpb.zip -d \u002Fpb\u002F && rm \u002Ftmp\u002Fpb.zip\n\n# Copy hooks and migrations\nCOPY .\u002Fpb_hooks \u002Fpb\u002Fpb_hooks\nCOPY .\u002Fpb_migrations \u002Fpb\u002Fpb_migrations\n\nEXPOSE 8090\n\nCMD [\"\u002Fpb\u002Fpocketbase\", \"serve\", \"--http=0.0.0.0:8090\"]\n```\n\n### docker-compose.yml\n\n```yaml\nservices:\n  pocketbase:\n    build: .\n    ports:\n      - \"127.0.0.1:8090:8090\"  # bind to localhost only — expose via reverse proxy\n    volumes:\n      - pb_data:\u002Fpb\u002Fpb_data\n      - .\u002Fpb_hooks:\u002Fpb\u002Fpb_hooks\n      - .\u002Fpb_migrations:\u002Fpb\u002Fpb_migrations\n    restart: unless-stopped\n    healthcheck:\n      test: [\"CMD\", \"wget\", \"--no-verbose\", \"--tries=1\", \"--spider\", \"http:\u002F\u002Flocalhost:8090\u002Fapi\u002Fhealth\"]\n      interval: 30s\n      timeout: 5s\n      retries: 3\n\nvolumes:\n  pb_data:\n```\n\n## Reverse Proxy\n\n### Caddy (recommended — auto TLS)\n\n```\n# \u002Fetc\u002Fcaddy\u002FCaddyfile\nmyapp.com {\n    reverse_proxy localhost:8090\n}\n```\n\nThat's it. Caddy handles TLS certificates automatically via Let's Encrypt.\n\n### nginx\n\n```nginx\n# \u002Fetc\u002Fnginx\u002Fsites-available\u002Fpocketbase\nserver {\n    listen 80;\n    server_name myapp.com;\n    return 301 https:\u002F\u002F$server_name$request_uri;\n}\n\nserver {\n    listen 443 ssl http2;\n    server_name myapp.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fmyapp.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fmyapp.com\u002Fprivkey.pem;\n    ssl_protocols TLSv1.2 TLSv1.3;\n    ssl_ciphers HIGH:!aNULL:!MD5;\n\n    client_max_body_size 50M;\n\n    # Block public access to the admin dashboard\n    location \u002F_\u002F {\n        return 403;\n    }\n\n    location \u002F {\n        proxy_pass http:\u002F\u002F127.0.0.1:8090;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n\n        # SSE support for realtime\n        proxy_buffering off;\n        proxy_cache off;\n        proxy_read_timeout 3600s;\n    }\n}\n```\n\n**Critical for realtime**: `proxy_buffering off` and `proxy_read_timeout` must be set for SSE subscriptions to work.\n\n```bash\n# Let's Encrypt with nginx\nsudo apt install certbot python3-certbot-nginx\nsudo certbot --nginx -d myapp.com\n```\n\n## SMTP Configuration\n\nConfigure in Dashboard > Settings > Mail settings, or via hooks:\n\n```js\n\u002F\u002F pb_hooks\u002Fsettings.pb.js\nonBootstrap(function(e) {\n    var settings = e.app.settings()\n    settings.smtp.enabled = true\n    settings.smtp.host = $os.getenv(\"SMTP_HOST\")\n    settings.smtp.port = parseInt($os.getenv(\"SMTP_PORT\") || \"587\")\n    settings.smtp.username = $os.getenv(\"SMTP_USER\")\n    settings.smtp.password = $os.getenv(\"SMTP_PASS\")\n    settings.smtp.tls = true  \u002F\u002F STARTTLS\n    \u002F\u002F settings.smtp.authMethod = \"PLAIN\"  \u002F\u002F or \"LOGIN\"\n    settings.meta.senderName = \"My App\"\n    settings.meta.senderAddress = \"noreply@myapp.com\"\n    e.app.save(settings)\n    return e.next()\n})\n```\n\n## Security Hardening\n\n### Superuser MFA\n\nAlways enable MFA for superuser accounts in production:\nDashboard > Superusers > Auth options > MFA > Enable\n\n### Settings encryption key\n\nEncrypt sensitive settings (SMTP passwords, S3 keys) at rest:\n\n```bash\n.\u002Fpocketbase serve --encryptionEnv=PB_ENCRYPTION_KEY\n```\n\nSet `PB_ENCRYPTION_KEY` environment variable to a 32+ character random string. Once set, settings are encrypted in the DB. **Do not lose this key** — you won't be able to decrypt settings without it.\n\n### Rate limiting\n\nBuilt-in rate limiter (enabled by default). Configure in Dashboard > Settings > Rate limits, or:\n\n```js\nsettings.rateLimits.enabled = true\nsettings.rateLimits.rules = [\n    { label: \"*:auth*\", maxRequests: 10, duration: 300 },  \u002F\u002F 10 auth attempts per 5 min\n    { label: \"POST:\u002Fapi\u002Fcollections\u002F*\u002Frecords\", maxRequests: 50, duration: 60 },\n]\n```\n\n### Hide the Dashboard in production\n\n```bash\n.\u002Fpocketbase serve --http=\"127.0.0.1:8090\"  # bind to localhost only\n```\n\nAccess the dashboard only via SSH tunnel:\n```bash\nssh -L 8090:127.0.0.1:8090 user@server\n```\n\n## S3 Storage\n\nFor file uploads, offload to S3-compatible storage:\n\nDashboard > Settings > Files storage > S3\n\n```js\n\u002F\u002F Or via hooks:\nonBootstrap(function(e) {\n    var settings = e.app.settings()\n    settings.s3.enabled = true\n    settings.s3.bucket = $os.getenv(\"S3_BUCKET\")\n    settings.s3.region = $os.getenv(\"S3_REGION\")\n    settings.s3.endpoint = $os.getenv(\"S3_ENDPOINT\")\n    settings.s3.accessKey = $os.getenv(\"S3_ACCESS_KEY\")\n    settings.s3.secret = $os.getenv(\"S3_SECRET\")\n    settings.s3.forcePathStyle = true  \u002F\u002F for MinIO\u002FBackblaze\n    e.app.save(settings)\n    return e.next()\n})\n```\n\nCompatible providers: AWS S3, Backblaze B2, Cloudflare R2, MinIO, DigitalOcean Spaces, Wasabi.\n\n## Backups\n\n### Small databases (\u003C 1GB)\n\nUse the built-in backup feature:\n- Dashboard > Settings > Backups\n- Or via API: `POST \u002Fapi\u002Fbackups`\n- Auto-schedule: configure cron in Dashboard\n\n### Large databases\n\nThe Dashboard backup uses SQLite's online backup API (locks DB briefly). For large DBs, use:\n\n```bash\n# sqlite3 .backup command (hot backup, minimal locking)\nsqlite3 \u002Fopt\u002Fpocketbase\u002Fpb_data\u002Fdata.db \".backup '\u002Ftmp\u002Fbackup.db'\"\n\n# Then rsync to remote\nrsync -avz \u002Ftmp\u002Fbackup.db backup-server:\u002Fbackups\u002Fpocketbase\u002Fdata-$(date +%Y%m%d).db\n```\n\n**Never copy the `.db` file directly** while PocketBase is running — it may be in an inconsistent state.\n\n### Backup script\n\n```bash\n#!\u002Fbin\u002Fbash\n# \u002Fopt\u002Fpocketbase\u002Fbackup.sh\nset -euo pipefail\n\nBACKUP_DIR=\"\u002Fbackups\u002Fpocketbase\"\nDB_PATH=\"\u002Fopt\u002Fpocketbase\u002Fpb_data\u002Fdata.db\"\nDATE=$(date +%Y%m%d_%H%M%S)\n\nmkdir -p \"$BACKUP_DIR\"\n\n# Hot backup\nsqlite3 \"$DB_PATH\" \".backup '${BACKUP_DIR}\u002Fdata_${DATE}.db'\"\n\n# Also backup pb_data files (uploads, if not using S3)\ntar -czf \"${BACKUP_DIR}\u002Fpb_data_${DATE}.tar.gz\" -C \u002Fopt\u002Fpocketbase pb_data --exclude='pb_data\u002Fdata.db*'\n\n# Retain last 30 days\nfind \"$BACKUP_DIR\" -name \"data_*.db\" -mtime +30 -delete\nfind \"$BACKUP_DIR\" -name \"pb_data_*.tar.gz\" -mtime +30 -delete\n```\n\n```bash\n# Crontab: daily at 2 AM\n0 2 * * * \u002Fopt\u002Fpocketbase\u002Fbackup.sh >> \u002Fvar\u002Flog\u002Fpocketbase-backup.log 2>&1\n```\n\n## Health Check\n\n```bash\ncurl http:\u002F\u002Flocalhost:8090\u002Fapi\u002Fhealth\n# {\"code\":200,\"message\":\"API is healthy.\"}\n```\n\n## Deployment Checklist\n\n1. **Binary**: correct architecture (linux_amd64 \u002F linux_arm64)\n2. **systemd**: service enabled, LimitNOFILE set\n3. **Reverse proxy**: Caddy or nginx with TLS, proxy_buffering off for SSE\n4. **SMTP**: configured and tested (send a test verification email)\n5. **Superuser**: strong password + MFA enabled\n6. **Encryption key**: `--encryptionEnv` set for sensitive settings\n7. **Backups**: automated daily, tested restore procedure\n8. **Rate limiting**: enabled with sane defaults\n9. **File storage**: S3 configured if expecting many uploads\n10. **Monitoring**: health check endpoint monitored, journalctl logs reviewed\n11. **Firewall**: only 80\u002F443 exposed, 8090 bound to localhost\n12. **GOMEMLIMIT**: set if on constrained VPS\n",{"name":5,"description":7},"main","e3744adb7654df443f12927f3e001252b3a26b6d","cli-tool\u002Fcomponents\u002Fskills\u002Fpocketbase\u002Fpb-deploy","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates","https:\u002F\u002Fgithub.com\u002FKrismithReddy12","2026-07-29 08:15:10",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add KrismithReddy12\u002Fclaude-code-templates --skill \"PocketBase Deploy\"",{"tool":35,"command":36},"bunx","bunx skills add KrismithReddy12\u002Fclaude-code-templates --skill \"PocketBase Deploy\"",{"tool":38,"command":39},"pnpm","pnpm dlx skills add KrismithReddy12\u002Fclaude-code-templates --skill \"PocketBase Deploy\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fpocketbase\u002Fpb-deploy\u002FSKILL.md",true,[],[44,51,60,67,74,81],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M79YMXJ07S2BQVB7JAM3657Q","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fzapier-make-patterns\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":55,"licenseFileUrl":56,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M79YMVPMK3Y4JDP2KDJKQ2ZD","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M79YMMQ4XXMPJHDQHY8FR7ME","workflow-automation","Workflow automation is the infrastructure that makes AI agents reliable. Without durable execution, a network hiccup during a 10-step payment flow means lost money and angry customers. With it, workflows resume exactly where they left off.  This skill covers the platforms (n8n, Temporal, Inngest) and patterns (sequential, parallel, orchestrator-worker) that turn brittle scripts into production-grade automation.  Key insight: The platforms make different tradeoffs. n8n optimizes for accessibility","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fworkflow-automation\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M79YMHQY3CP1XXMQ00TGQFAW","trigger-dev","Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Ftrigger-dev\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M79YME4Z3DRW0MT6BNYW1D7P","slack-automation","Automate Slack workspace operations including messaging, search, channel management, and reaction workflows through Composio's Slack toolkit.","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fslack-automation\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M79YMAX7NFYDFXFZH2TJS7SS","planning-with-files","Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fplanning-with-files\u002FSKILL.md",[],[]]