Environment variables
Api environments
Example .env file:
SERVER_PORT=4454MONGODB_URI=mongodb://mongo:27017MONGODB_DB=ud
APP_IMAGE=flow8:latestGOPRIVATE=<gorgany_framework_git_url>
GIT_HOST=<gorgany_framework_git_host>GIT_USER=<gorgany_framework_git_user>GIT_PASS=<gorgany_framework_git_token>
COMPOSE_FILE=docker-compose.yml
GOPROXY=https://proxy.golang.org,direct
EXPRESS_USER=<mongo_express_user>EXPRESS_PASS=<mongo_express_password>
COOKIE_DOMAIN=.flow8.local
API_URL=http://api.flow8.local/apiFRONTEN_URL=http://app.flow8.local| Variable | Description | Default |
|---|---|---|
| SERVER_PORT | Default port for the api application | 4454 |
| MONGODB_URI | MongoDB connection string | mongodb://mongo:27017 |
| MONGODB_URI | MongoDB database name | ud |
| APP_IMAGE | App image for container registry and deployment (for build only) | flow8:latest |
| GOPRIVATE | Gorgany framevork git repo (for build only) | - |
| GIT_HOST | Gorgany framevork git creds (for build only) | github.com |
| GIT_USER | Gorgany framevork git creds (for build only) | username |
| GIT_PASS | Gorgany framevork git creds (for build only) | access_token |
| COMPOSE_FILE | Pre-defined docker-compose environment variable (Optional) | docker-compose.yml |
| GOPROXY | Go environment variable, which accepts a list of proxy URLs (Optional) | https://proxy.golang.org,direct |
| EXPRESS_USER | Mongo express admin username (Optional for development) | - |
| EXPRESS_PASS | Mongo express admin password (Optional for development) | - |
| COOKIE_DOMAIN | Cookie domain | .example.com |
| API_URL | Api url | https://api.example.com/api |
| FRONTEND_URL | Frontend app url | https://example.com |
Front app environments
VITE_BASE_URL=https://api.example.com/api # api url