diff --git a/.env.template b/.env.template new file mode 100644 index 0000000..caf5724 --- /dev/null +++ b/.env.template @@ -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 diff --git a/backend/.env.template b/backend/.env.template new file mode 100644 index 0000000..3437548 --- /dev/null +++ b/backend/.env.template @@ -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 + +