-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(env): add the example file for env
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
DEPLOY_WEB_HOST='Host' | ||
DEPLOY_WEB_PORT='Frontend Port' | ||
DEPLOY_APP_PORT='Backend Port' | ||
|
||
#Docker | ||
DOCKER_UWSGI_INTERNAL_PORT='uwsgi internal port' | ||
DOCKER_WEB_CONTAINER='Frontend container name' | ||
DOCKER_APP_CONTAINER='Backend container name' | ||
|
||
DOCKER_DB_CONTAINER='DB container name' | ||
DOCKER_DB_DATABASE='DB name' | ||
DOCKER_DB_USERNAME='DB user' | ||
DOCKER_DB_PASSWORD='DB password' | ||
DOCKER_DB_PORT='DB port (expose)' | ||
DOCKER_DB_INNER_PORT='DB inner port' | ||
|
||
# Django | ||
SECRET_KEY='Django secret key' | ||
DATABASE_URL='postgres://db_user:db_password@db_host:db_port/db_name' | ||
DEBUG='Debug mode (True or False)' | ||
DJANGO_SUPERUSER_USERNAME='Default admin name' | ||
DJANGO_SUPERUSER_PASSWORD='Default admin password' | ||
DJANGO_SUPERUSER_EMAIL='Default admin email' | ||
EMAIL_PASSWORD='Email password for email validation' | ||
GOOGLE_OAUTH2_KEY='Google oauth2 key' | ||
GOOGLE_OAUTH2_SECRET='Google oauth2 secret' | ||
CSRF_TRUSTED_ORIGINS='CSRF truested lists' | ||
|
||
# React | ||
VITE_CSRF_COOKIE_NAME="${DJANGO_CSRF_COOKIE_NAME}" | ||
VITE_SESSION_COOKIE_NAME="${DJANGO_SESSION_COOKIE_NAME}" | ||
VITE_API_HOST=/api/ | ||
VITE_FE_PORT="${DEPLOY_WEB_PORT}" | ||
VITE_BE_PORT="${DEPLOY_APP_PORT}" | ||
VITE_FE_HOST="http://${DEPLOY_WEB_HOST}:${VITE_FE_PORT}" | ||
VITE_BE_HOST="http://${DEPLOY_WEB_HOST}:${VITE_BE_PORT}" |