added env templates

This commit is contained in:
Igor Hrenowitsch Propisnov 2024-09-19 14:19:50 +02:00
parent a25462474f
commit aac55478bd
2 changed files with 39 additions and 0 deletions

6
.env.template Normal file
View File

@ -0,0 +1,6 @@
# Local Postgres
POSTGRES_USER=root
POSTGRES_PASSWORD=root
POSTGRES_DB=ticket_mvp
PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=root

33
backend/.env.template Normal file
View File

@ -0,0 +1,33 @@
# Environment
NODE_ENV = development
# App Environment
APP_URL = http://localhost:4200
# DB
DB_HOST = localhost
DB_PORT = 5432
DB_USERNAME = root
DB_PASSWORD = root
DB_NAME = ticket_mvp
# CORS
CORS_ALLOW_ORIGIN=http://localhost:4200,http://localhost:5000,null
CORS_ALLOW_METHODS = GET,POST,PUT,DELETE,OPTIONS
CORS_ALLOW_HEADERS = Origin,X-Requested-With,Content-Type,Accept,Authorization
# CSP
CSP_DIRECTIVES="default-src 'self' http://localhost:4200; script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:4200; style-src 'self' 'unsafe-inline' http://localhost:4200; img-src 'self' data:; connect-src 'self' http://localhost:4200; font-src 'self' http://localhost:4200; frame-src 'self'; object-src 'none'"
# SESSION Secret
SESSION_SECRET = secret
SESSION_LIMIT = 1
# API KEY
SEND_GRID_API_KEY = API_KEY
# SENDGRID
SENDGRID_TEMPLATE_PASSWORD_CONFIRMATION_EMAIL = TEMPLATE_ID
SENDGRID_TEMPLATE_REGISTER_EMAIL = TEMPLATE_ID