From c1ed20a559d2b41267b853023aacefbd07c4f024 Mon Sep 17 00:00:00 2001 From: canove Date: Wed, 30 Sep 2020 19:41:44 -0300 Subject: [PATCH] update README with new required .env --- README.md | 1 + backend/.env.example | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c390c0f..81832ab 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,7 @@ nano whaticket/backend/.env ```bash NODE_ENV= BACKEND_URL=https://api.mydomain.com #USE HTTPS HERE, WE WILL ADD SSL LATTER +FRONTEND_URL=https://myapp.mydomain.com #USE HTTPS HERE, WE WILL ADD SSL LATTER, CORS RELATED! PROXY_PORT=443 #USE NGINX REVERSE PROXY PORT HERE, WE WILL CONFIGURE IT LATTER PORT=8080 diff --git a/backend/.env.example b/backend/.env.example index cacfd9e..a10260d 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,9 +1,10 @@ -NODE_ENV= -BACKEND_URL=http://localhost -PROXY_PORT=8080 -PORT=8080 - -DB_HOST= -DB_USER= -DB_PASS= -DB_NAME= \ No newline at end of file +NODE_ENV= +BACKEND_URL=http://localhost +FRONTEND_URL=http://localhost:3000 +PROXY_PORT=8080 +PORT=8080 + +DB_HOST= +DB_USER= +DB_PASS= +DB_NAME=