2021-04-02 09:24:00 +00:00
|
|
|
## Timezones
|
2021-12-25 09:24:47 +00:00
|
|
|
GoScrobble runs as UTC and connects to postgres as UTC. All timezone handling is done in the frontend.
|
2021-04-02 09:24:00 +00:00
|
|
|
|
2021-03-27 21:39:08 +00:00
|
|
|
## FRONTEND VARS
|
2021-03-27 21:57:23 +00:00
|
|
|
These are stored in `web/.env.production` and `web/.env.development`
|
|
|
|
|
2021-03-27 21:39:08 +00:00
|
|
|
REACT_APP_API_URL=https://goscrobble.com // Sets API URL
|
|
|
|
|
|
|
|
|
|
|
|
## BACKEND VARS
|
2021-12-25 09:24:47 +00:00
|
|
|
POSTGRES_HOST= // postgres Server
|
|
|
|
POSTGRES_USER= // postgres User
|
|
|
|
POSTGRES_PASS= // postgres Password
|
|
|
|
POSTGRES_DB= // postgres Database
|
2021-03-27 21:39:08 +00:00
|
|
|
|
2021-03-29 07:56:34 +00:00
|
|
|
REDIS_HOST=127.0.0.1 // Redis host
|
|
|
|
REDIS_PORT= // Redis port (defaults 6379)
|
2021-03-27 21:39:08 +00:00
|
|
|
REDIS_DB=4 // Redis DB
|
|
|
|
REDIS_PREFIX="gs:" // Redis key prefix
|
|
|
|
REDIS_AUTH="" // Redis password
|
|
|
|
|
|
|
|
JWT_SECRET= // 32+ Char JWT secret
|
2021-04-06 08:28:04 +00:00
|
|
|
JWT_EXPIRY=1800 // JWT expiry in seconds
|
|
|
|
REFRESH_EXPIRY=604800 // Refresh token expiry
|
2021-03-27 21:39:08 +00:00
|
|
|
|
|
|
|
REVERSE_PROXIES=127.0.0.1 // Comma separated list of servers to ignore for IP logs
|
2021-03-27 21:57:23 +00:00
|
|
|
PORT=42069 // Server port
|
2021-04-01 12:56:08 +00:00
|
|
|
|
|
|
|
SENDGRID_API_KEY= // API KEY
|
|
|
|
MAIL_FROM_ADDRESS= // FROM email
|
|
|
|
MAIL_FROM_NAME= // FROM name
|
|
|
|
|
2021-08-13 09:37:53 +00:00
|
|
|
DEV_MODE=false // true|false - Defaults false
|
2021-04-01 12:56:08 +00:00
|
|
|
GOSCROBBLE_DOMAIN="" // Full domain for email links (https://goscrobble.com))
|
2021-12-25 00:30:55 +00:00
|
|
|
|
|
|
|
DATA_DIRECTORY="/var/www/goscrobble-data"
|
|
|
|
FRONTEND_DIRECTORY="/var/www/goscrobble-web"
|
2021-12-25 02:38:42 +00:00
|
|
|
API_DOCS_DIRECTORY="/var/www/goscrobble-api/docs/api/build"
|