### APP ### APP_PORT=4000 METRICS_PORT=4001 ### API ### # Possible values: max (start instances on all cores), number (start instances on number of cores), -1 (start instances on all cores - 1) # !!! Do not set this value more than physical cores count in your machine !!! # Review documentation: https://docs.rw/docs/install/environment-variables#scaling-api API_INSTANCES=1 ### DATABASE ### # FORMAT: postgresql://{user}:{password}@{host}:{port}/{database} DATABASE_URL="postgresql://postgres:3e33be2e258f99d8a5ab0a7261e56e0d47b330386e0cfa91@remnawave-db:5432/postgres" ### REDIS ### REDIS_HOST=remnawave-redis REDIS_PORT=6379 ### JWT ### ### CHANGE DEFAULT VALUES ### JWT_AUTH_SECRET=d08491f772f0c784c0d5ce7e52783b4b22064545df1b44cd523e1cace9fed9904c87ea04495b926867bc93df06bcaa24cc2327aaf6be5cf3353b22b132e24571 JWT_API_TOKENS_SECRET=9466fd17f4c3380979fdb25e45de9ae5c14fb258c2bf2c93a2cd6524f4b2b47dd43da9f53db8b2be7cee5592f7d3b9095b78cdeb26aa7d3f8752ed0364065d0c ### TELEGRAM NOTIFICATIONS ### IS_TELEGRAM_NOTIFICATIONS_ENABLED=true TELEGRAM_BOT_TOKEN="8405952404:AAFV6E-9YbyJhrphv69veO-ti2IqmrJctjk" TELEGRAM_NOTIFY_USERS_CHAT_ID="-1003591520479" TELEGRAM_NOTIFY_NODES_CHAT_ID="-1003591520479" TELEGRAM_NOTIFY_CRM_CHAT_ID="-1003591520479" # Optional # Only set if you want to use topics TELEGRAM_NOTIFY_USERS_THREAD_ID=2 TELEGRAM_NOTIFY_NODES_THREAD_ID=9 TELEGRAM_NOTIFY_CRM_THREAD_ID=6 ### FRONT_END ### # Used by CORS, you can leave it as * or place your domain there FRONT_END_DOMAIN=subs.grenu4.ru ### SUBSCRIPTION PUBLIC DOMAIN ### ### DOMAIN, WITHOUT HTTP/HTTPS, DO NOT ADD / AT THE END ### ### Used in "profile-web-page-url" response header and in UI/API ### ### Review documentation: https://docs.rw/docs/install/environment-variables#domains SUB_PUBLIC_DOMAIN=sub.grenu4.ru ### If CUSTOM_SUB_PREFIX is set in @remnawave/subscription-page, append the same path to SUB_PUBLIC_DOMAIN. Example: SUB_PUBLIC_DOMAIN=sub-page.example.com/sub ### SWAGGER ### SWAGGER_PATH=/docs SCALAR_PATH=/scalar IS_DOCS_ENABLED=false ### PROMETHEUS ### ### Metrics are available at http://127.0.0.1:METRICS_PORT/metrics METRICS_USER=admin METRICS_PASS=c9b5d1fbdbae563877e4118b3829ae57aa6ee5551934a57c1542c6f062557fa29f7a862b25d89428f22fa3958046af2cba483f162eb7f7930a0fa1f1797d506e # Webhook configuration # Enable webhook notifications (true/false, defaults to false if not set or empty) WEBHOOK_ENABLED=false # Webhook URL to send notifications to (can specify multiple URLs separated by commas if needed) # Only http:// or https:// are allowed. WEBHOOK_URL=https://your-webhook-url.com/endpoint ### This secret is used to sign the webhook payload, must be exact 64 characters. Only a-z, 0-9, A-Z are allowed. WEBHOOK_SECRET_HEADER=ad48682c3fbf9480fc101480d7d6b0d5d3d0d6cbbd078f3bfceb8bf7c91c56451b4dbb2b741f239b42802abae49e069a8e9a01beb12a6f273abcc91dba718def ### Bandwidth usage reached notifications BANDWIDTH_USAGE_NOTIFICATIONS_ENABLED=false # Only in ASC order (example: [60, 80]), must be valid array of integer(min: 25, max: 95) numbers. No more than 5 values. BANDWIDTH_USAGE_NOTIFICATIONS_THRESHOLD=[60, 80] ### Not connected users notification (webhook, telegram) NOT_CONNECTED_USERS_NOTIFICATIONS_ENABLED=false # Only in ASC order (example: [6, 12, 24]), must be valid array of integer(min: 1, max: 168) numbers. No more than 3 values. # Each value represents HOURS passed after user creation (user.createdAt) NOT_CONNECTED_USERS_NOTIFICATIONS_AFTER_HOURS=[6, 24, 48] ### CLOUDFLARE ### # USED ONLY FOR docker-compose-prod-with-cf.yml # NOT USED BY THE APP ITSELF CLOUDFLARE_TOKEN=ey... ### Database ### ### For Postgres Docker container ### # NOT USED BY THE APP ITSELF POSTGRES_USER=postgres POSTGRES_PASSWORD=3e33be2e258f99d8a5ab0a7261e56e0d47b330386e0cfa91 POSTGRES_DB=postgres