 ##--- APPLICATION-CONFIGURATION
VERSION=v2.00.00
PORT=3000
##--- DB-CONFIGURATION
##--- MYSQL-CONFIGURATION
#DB_HOST=localhost
#DB_USER=root
#DB_PASSWORD=0000
#DB_NAME=FRAMEWORK_DATABASE
#DB_PORT=3306

##--- POSTGRESQL-CONFIGURATION (development)
#DB_HOST=intus-general-development-api.cuhgb9tlu74t.us-east-2.rds.amazonaws.com
DB_HOST=intus-general-production-api.cuhgb9tlu74t.us-east-2.rds.amazonaws.com
DB_USER=postgres
DB_PASSWORD=FTnSbNel93Sp8bX8cOX2
DB_NAME=postgres
DB_PORT=5432

##--- MAILER
MAILGUN_APIKEY=ecaef22165b43d21aff18c490d2023ea-62916a6c-f4945411
MAILGUN_DOMAIN=sandbox67b0af40bb4e4c63b575b8eac4122fed.mailgun.org
MAILGUN_URL=https://api.mailgun.net/v3/sandbox67b0af40bb4e4c63b575b8eac4122fed.mailgun.org
MAILGUN_FROM_NAME='Mail Sender'
MAILGUN_FROM_ADDRESS=noreply@asteg.co

## A. TO RUN NODE AS A REVERSE PROXY ON APACHE IN PORT 80
##
## 	0. CONFIGURE TO RUN FROM PORT 80
## 		sudo apt-get install libcap2-bin
## 		sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\``
##
## 	1. ADD THIS LINES TO /etc/apache2/sites-enabled/<domain-configuration>.conf and
##					     /etc/apache2/sites-enabled/<domain-configuration>.com-le
##
##		ProxyRequests Off
##		<Proxy *>
##			Order deny,allow
##			Allow from all
##		</Proxy>
##		ProxyPass / http://127.0.0.1:3000
##		ProxyPassReverse / http://127.0.0.1:3000
##
## 	2. RUN THIS 2 BASH SCRIPTS
##		sudo a2enmod proxy
##		sudo a2enmod proxy_http
##		sudo a2enmod proxy_balancer
##		sudo a2enmod lbmethod_byrequests
##
## 	3. RESTART APACHE
## 		sudo systemctl restart apache2.service
##
## @REF https://blog.containerize.com/2021/05/21/how-to-configure-apache-as-a-reverse-proxy-for-ubuntudebian/
##

## B. RUN NODE IN THE BACKGROUND
##
## 0. INSTALL PM2
##		sudo npm install pm2@latest -g
##
## 1. RUN IN PM2
##		pm2 start "npm run start"
## 		pm2 startup systemd
##			follow promts to run a command
##		pm2 save
##
##	@REMEMBER to use nodemon -L (legacy) when inside a container environment.
##  @REMEMBER to set mysql to `ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';`
