-
-
Save rotrojan/8327ed83703c88a0f114cbf7869d7e10 to your computer and use it in GitHub Desktop.
.env file template for ft_transcendence
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
# .env file template for ft_transcendence | |
## NETWORK | |
PRT=https | |
APP_HOST=the-hostname-of-your-machine | |
APP_URL=${PRT}://${APP_HOST} | |
## RP | |
RP_HOST=${APP_HOST} | |
RP_PORT=4443 | |
REACT_APP_RP_URL=${PRT}://${RP_HOST}:${RP_PORT} | |
REACT_APP_FRONT_URL=${REACT_APP_RP_URL} | |
REACT_APP_BACK_URL=${REACT_APP_RP_URL} | |
## FRONT | |
FRONT_HOST=frontend | |
FRONT_PORT=3000 | |
REACT_APP_RP_FRONT_URL=https://frontend:${FRONT_PORT} | |
## BACK | |
BACK_HOST=backend | |
BACK_PORT=3011 | |
REACT_APP_RP_BACK_URL=https://backend:${BACK_PORT} | |
## APP | |
HOME_PAGE=${REACT_APP_FRONT_URL}/MainPage | |
LOGIN_PAGE=${REACT_APP_FRONT_URL} | |
REDIRECT_URI=${REACT_APP_BACK_URL}/auth/login | |
## PGADMIN CONF (unused in production) | |
#PGADMIN_DEFAULT_EMAIL=admin@admin.com | |
#PGADMIN_DEFAULT_PASSWORD=password | |
#GUNICORN_ACCESS_LOGFILE='/dev/null'undefined | |
## GAME CONF | |
PONG_INTERVAL_TIME=30 | |
# in ms | |
PONG_PADDLE_SIZE=10 | |
# if you change that change also property height of paddle in Game css (x2) | |
PONG_BALL_SPEED=3 | |
# in % | |
PONG_END_SCORE=10 | |
PONG_POS_BALL_X=150 | |
PONG_POS_BALL_Y=75 | |
# same const in game.tsx | |
PONG_BOTTOM_LIM=148 | |
PONG_TOP_LIM=2 | |
PONG_RIGHT_LIM=298 | |
PONG_LEFT_LIM=2 | |
PONG_PADDLE_LEFT_X=15 | |
PONG_PADDLE_RIGHT_X=285 | |
PONG_BALL_DIAM=4 | |
# en % | |
REACT_APP_PADDLE_GAP=10 | |
# gap between border and paddle in % | |
REACT_APP_PADDLE_DEP=2 | |
# need to be a divisor of PADDLE_SIZE defined in PongService in % | |
## POSTGRES CONF | |
POSTGRES_DB=pong_db | |
POSTGRES_USER=pong_adm | |
POSTGRES_PASSWORD=pingpong | |
PGPORT=3020 | |
PGDATA=/var/lib/postgresql/data/pgdata | |
## API CONF | |
JWT_ACCESS_TOKEN_EXPIRATION_TIME=86400 | |
FT_CLIENT_ID=the-uid-on-your-42-api-app | |
FT_CLIENT_SECRET=the-secret-on-your-42-api-app | |
JWT_ACCESS_TOKEN_SECRET=a-strong-secret-which-can-be-random-generated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment