GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — switchpost/.env.example at master · ishan-parihar/switchpost Expand file tree/ Copy path.env.exampleMore file actions 248 lines (209 loc) · 12.9 KB / Copy path.env.exampleFile metadata and controls248 lines (209 loc) · 12.9 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 # ─── Switchpost Configuration ────────────────────────────── # Copy this file to .env and fill in your values. # ── Core ───────────────────────────────────────────────────── # SQLite only. The file is created and migrated automatically on first run. # Optional — defaults to sqlite://data/switchpost.db when unset. # Any other scheme (postgres://, mysql://, …) is rejected at startup: no such # driver is linked into this binary. DATABASE_URL=sqlite://data/switchpost.db?mode=rwc # ── Auth ──────────────────────────────────────────────────── # Single-user password gate. Auto-generated on first run if unset # (persisted to ~/.switchpost/.env). Set explicitly for deployments. # APP_PASSWORD=change-me-to-a-strong-password # ── Server ────────────────────────────────────────────────── # APP_URL is the public-facing URL of your instance. # Used for OAuth redirect URIs: {APP_URL}/api/auth/callback # Default: https://localhost:6543 # # ⚠️ IMPORTANT: Instagram-Standalone and Threads (Meta) REQUIRE HTTPS. # They do NOT support http:// redirect URIs, even for localhost. # The server auto-generates a self-signed cert when APP_URL starts with https://. # For production, use a real cert via tunnel (ngrok/cloudflare) or reverse proxy. # # For self-hosting behind a tunnel/proxy, set to your public URL: # APP_URL=https://switchpost.yourdomain.com APP_URL=https://localhost:6543 # BIND_HOST controls which network interface the server binds to. # Default: 127.0.0.1 (loopback only — recommended for single-user) # Set to 0.0.0.0 to expose on all interfaces (LAN access). Ensure # APP_PASSWORD is strong and the port is firewalled if you do this. # BIND_HOST=127.0.0.1 # FRONTEND_URL controls CORS allowed origins AND the CSRF allow-list. # Default: same as APP_URL (recommended for single-origin deployment) # FRONTEND_URL=https://localhost:6543 # JWT secret for auth tokens (auto-derived from APP_PASSWORD if not set) # JWT_SECRET=your-secret-key-here # ── Security (Recommended) ────────────────────────────────── # 64 hex chars (32 bytes) — encrypts OAuth tokens at rest # TOKEN_ENCRYPTION_KEY= # ── Outbound requests (webhooks, RSS) ──────────────────────── # The app FETCHES webhook receiver URLs and RSS feed URLs on your behalf. # By default it refuses a local or private address (127.0.0.1, 10.x, # 192.168.x, 169.254.169.254 — the cloud metadata address — and the same # ranges reached through a DNS name), because that address is an SSRF # target: a webhook pointed at the metadata service reads the instance # credentials and hands them back through the test endpoint. # # Set this to 1 if you really do want a receiver on your own machine or # your LAN (an n8n on localhost, a receiver on 192.168.1.10). # ALLOW_PRIVATE_OUTBOUND_URLS=1 # ── Frontend serving (Optional) ───────────────────────────── # SERVE_FRONTEND=true # set to false for API-only mode # FRONTEND_DIR= # serve from filesystem path (dev mode) # ── X / Twitter ───────────────────────────────────────────── # Option 1: Cookie auth (recommended — enables full GraphQL API) # X_AUTH_TOKEN= # X_CT0= # Option 2: OAuth 2.0 (limited to Twitter API v2) # X_CLIENT_ID= # X_CLIENT_SECRET= # ── Reddit ────────────────────────────────────────────────── # Option 1: Cookie auth (recommended — enables voting, moderation) # Cookies are auto-extracted from browser, or submit via web form. # Option 2: OAuth (script app) # REDDIT_CLIENT_ID= # REDDIT_CLIENT_SECRET= # REDDIT_USERNAME= # REDDIT_PASSWORD= # Option 3: Pre-obtained tokens # REDDIT_ACCESS_TOKEN= # REDDIT_REFRESH_TOKEN= # ── LinkedIn ──────────────────────────────────────────────── # LINKEDIN_CLIENT_ID= # LINKEDIN_CLIENT_SECRET= # Opt-in to the READ path (feed import, li_get_posts, comment listing). # `r_member_social` needs LinkedIn's "Read member's social" product enabled # on the app; when that product is absent LinkedIn answers the authorize # request with "Bummer, something went wrong" before any consent screen, # which breaks PUBLISHING too. So the scope is off by default and this flag # is what turns it on — set it only after enabling the product. # LINKEDIN_ENABLE_MEMBER_SOCIAL_READ=1 # ── Facebook / Instagram ──────────────────────────────────── # FACEBOOK_CLIENT_ID= # FACEBOOK_CLIENT_SECRET= # The `instagram` provider (Graph API) reads INSTAGRAM_CLIENT_ID/SECRET — # normally the same Meta app id/secret as FACEBOOK_CLIENT_ID/SECRET. # INSTAGRAM_CLIENT_ID= # INSTAGRAM_CLIENT_SECRET= # The `instagram-standalone` provider reads INSTAGRAM_APP_ID/APP_SECRET. # INSTAGRAM_APP_ID= # INSTAGRAM_APP_SECRET= # ── Threads ───────────────────────────────────────────────── # THREADS_APP_ID= # THREADS_APP_SECRET= # ── YouTube / Google ──────────────────────────────────────── # YOUTUBE_CLIENT_ID= # YOUTUBE_CLIENT_SECRET= # One id/secret pair serves the whole Google Suite, CONNECTED AS FOUR # separate channels rather than one: # # `google` — YouTube + Gmail + Calendar # `gmail` — Gmail on its own # `calendar` — Calendar on its own # `drive` — Google Drive on its own # # Why the split is mandatory: Google's authorize endpoint refuses # `auth/youtube*` and `auth/drive*` in ONE consent # ("This request contains scopes that cannot be requested together"), so a # single `google` integration can never carry a Drive grant. Narrowing the # unified provider to YouTube+Gmail+Calendar is what makes it connectable # at all, and the separate `drive` connect is what keeps the MCP Drive # tools working. # ── TikTok ────────────────────────────────────────────────── # TIKTOK_CLIENT_ID= # TIKTOK_CLIENT_SECRET= # ── Pinterest ─────────────────────────────────────────────── # PINTEREST_CLIENT_ID= # PINTEREST_CLIENT_SECRET= # ── Discord ───────────────────────────────────────────────── # DISCORD_CLIENT_ID= # DISCORD_CLIENT_SECRET= # DISCORD_BOT_TOKEN= # ── Slack ─────────────────────────────────────────────────── # SLACK_CLIENT_ID= # SLACK_CLIENT_SECRET= # ── Telegram ──────────────────────────────────────────────── # Bot API (comma-separated tokens for multi-bot) # TELEGRAM_BOT_TOKENS= # User client (Grammers — for personal account automation). # NOT REQUIRED: with these unset the client runs on Telegram Desktop's public # credentials (the tg-lyr model), and a phone number + code at connect is # enough. Set your own pair only for a separate app identity, from # https://my.telegram.org. # TELEGRAM_API_ID= # TELEGRAM_API_HASH= # TELEGRAM_SESSION_DIR=./data/telegram # ── WhatsApp ──────────────────────────────────────────────── # WHATSAPP_STORE_DIR=./data/whatsapp # ── Bluesky ───────────────────────────────────────────────── # BLUESKY_HANDLE= # BLUESKY_APP_PASSWORD= # ── Mastodon ──────────────────────────────────────────────── # MASTODON_CLIENT_ID= # MASTODON_CLIENT_SECRET= # MASTODON_INSTANCE_URL= # ── Medium ────────────────────────────────────────────────── # MEDIUM_ACCESS_TOKEN= # ── Dev.to ────────────────────────────────────────────────── # DEVTO_API_KEY= # ── Hashnode ──────────────────────────────────────────────── # HASHNODE_API_KEY= # ── GitHub ────────────────────────────────────────────────── # GITHUB_TOKEN= # ── Media Storage ─────────────────────────────────────────── # MEDIA_DIR=./uploads # ── Media Storage (S3 / MinIO / R2) ─────────────────────────── # When MEDIA_S3_BUCKET + MEDIA_S3_ENDPOINT are set, uploads go to S3 # instead of the local MEDIA_DIR. MEDIA_S3_KEY / MEDIA_S3_SECRET are the # credentials (R2 uses an access key id and a secret access key). # MEDIA_S3_BUCKET= # MEDIA_S3_ENDPOINT= # MEDIA_S3_KEY= # MEDIA_S3_SECRET= # ── WhatsApp Cloud API ──────────────────────────────────────── # The Cloud API channel (the WhatsApp Web client above is the other one). # The webhook's `hub.challenge` is verified against # WHATSAPP_CLOUD_VERIFY_TOKEN, and the payload signature against # WHATSAPP_CLOUD_APP_SECRET (an unsigned payload is refused when the # secret is set). # WHATSAPP_CLOUD_TOKEN= # WHATSAPP_CLOUD_PHONE_NUMBER_ID= # WHATSAPP_CLOUD_WABA_ID= # WHATSAPP_CLOUD_VERIFY_TOKEN= # WHATSAPP_CLOUD_APP_SECRET= # ── AI assistant ────────────────────────────────────────────── # The endpoint that serves the composer's AI drafts, and the model to ask # for. Both are required for the AI features; without them the feature # says "not configured" and nothing else breaks. # LLM_ENDPOINT= # LLM_MODEL= # ── Farcaster (archive provider) ────────────────────────────── # Enables the Farcaster provider (ENABLE_ARCHIVE_PROVIDERS=1). # NEYNAR_API_KEY= # ── URL shortening (Dub.co) ─────────────────────────────────── # Shortens the links in a published post. DUB_CO_WORKSPACE is the # workspace the key belongs to. # DUB_CO_API_KEY= # DUB_CO_WORKSPACE= # ── Feed import ─────────────────────────────────────────────── # How often the feed refresher imports new posts, in seconds. # FEED_REFRESH_INTERVAL_SECONDS=900 # ── Content rules ───────────────────────────────────────────── # Strip the links out of an X post before publishing (the platform adds # its own t.co wrapper). # STRIP_LINKS_FROM_X=false # ── MCP toolsets ────────────────────────────────────────────── # The toolset the MCP server exposes by default. `core` is the small # set; `tools_enable` adds the named ones. # SWITCHPOST_TOOLSETS=core # ── Event log retention ─────────────────────────────────────── # How many days of `events_log` rows are kept. The scheduler prunes the # rest. # EVENTS_LOG_RETENTION_DAYS=30 # ── Reddit cookie auth ──────────────────────────────────────── # A reddit session cookie, for the cookie-auth path when there is no # browser cookie import. # REDDIT_COOKIE_TOKEN= # ── Deckmill (carousel renderer) ────────────────────────────── # The renderer binary. It is looked up on PATH when this is unset. # DECKMILL_BIN=deckmill |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |