Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download api/.env.docker from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 2.71 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/.env.docker
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/.env.docker
-
curl -L -o .env.docker https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/api/.env.docker
2.71 kB
| ENV=local | |
| # This is the project-id of the firebase project you created in the setup instructions | |
| GCP_PROJECT_ID=httpsms-docker | |
| USE_HTTP_LOGGER=true | |
| # Set to "true" to enable feature entitlement checks (limits for free users). | |
| # Defaults to "false" for self-hosted deployments (no limits). | |
| ENTITLEMENT_ENABLED=false | |
| EVENTS_QUEUE_TYPE=emulator | |
| EVENTS_QUEUE_NAME=events-local | |
| EVENTS_QUEUE_ENDPOINT=http://localhost:8000/v1/events | |
| # This is the user API key for the system admin user that is used to authenticate requests to the /v1/events endpoint | |
| # You need to create a system user in the `users` table in your database and put the API key and ID of this user here | |
| EVENTS_QUEUE_USER_API_KEY=system-user-api-key | |
| EVENTS_QUEUE_USER_ID=system-user-id | |
| # This is the actual conetnt of your service account firebase-credentials.json file that you downloaded in the setup instructions | |
| # e.g FIREBASE_CREDENTIALS='{ "type": "service_account", "project_id": "httpsms-docker", "private_key_id":..... | |
| FIREBASE_CREDENTIALS= | |
| # This is the from name for your emails | |
| SMTP_FROM_NAME=httpSMS | |
| # This is the address where your email messages should come from. You should make sure this matches what is configured on your SMTP service | |
| SMTP_FROM_EMAIL=httpsms@local.com | |
| # These are the credentials for your SMTP email service | |
| SMTP_USERNAME= | |
| SMTP_PASSWORD= | |
| SMTP_HOST=smtp.mailtrap.io | |
| SMTP_PORT=2525 | |
| # This is the URL of the application UI and it's used to generate links in emails | |
| APP_URL=http://localhost:3000 | |
| # The name of the application you can set it to whatever you like | |
| APP_NAME=httpSMS | |
| # This is the port where the API server will run on | |
| APP_PORT=8000 | |
| # Host for the swagger UI | |
| SWAGGER_HOST=localhost:8000 | |
| # Postgresql Database connection string | |
| DATABASE_URL=postgresql://dbusername:dbpassword@postgres:5432/httpsms | |
| DATABASE_URL_DEDICATED=postgresql://dbusername:dbpassword@postgres:5432/httpsms | |
| # Redis connection string | |
| REDIS_URL=redis://@redis:6379 | |
| # Google Cloud Storage bucket for MMS attachments. Leave empty to use in-memory storage. | |
| GCS_BUCKET_NAME= | |
| # [Optional] Axiom observability configuration | |
| # API token for Axiom (required for logging, traces, and metrics in production) | |
| AXIOM_TOKEN= | |
| # Dataset for logs and traces (e.g. "events") | |
| AXIOM_DATASET_EVENTS= | |
| # Dataset for metrics (e.g. "metrics") | |
| AXIOM_DATASET_METRICS= | |
| # [optional] Websocket configuration for https://pusher.com if you will like to frontend to update in real time | |
| PUSHER_APP_ID= | |
| PUSHER_KEY= | |
| PUSHER_SECRET= | |
| PUSHER_CLUSTER= | |
| # Cloudflare Turnstile secret key for validating captcha tokens on the /v1/messages/search route | |
| # Get your secret key at https://developers.cloudflare.com/turnstile/get-started/ | |
| CLOUDFLARE_TURNSTILE_SECRET_KEY= | |