This is a setup for a full stack application using BackEnd Google Cloud Platform VM Instance Free Tier with Hestia Control Panel and a FrontEnd React App hosting on CloudFlare Pages.
These are the configurations for the Backend
$ sudo su -
# v-change-sys-port 208
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
bash hst-install.sh --interactive no --email [email protected] --password MyPassword123 --hostname sub.domain.com -f
reboot
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCwqqRyGUZcxlAIsfYMAo3GWiChwsyMglkhNHBEQX5g7Zz5l4xZ7/
E0NFvs0S4t4v6Tv2Em0mQAxdBdTaURjPUaLY+zKDevAXoMKmdVa1dSCauP+KX7uCOMWcL5rCaBm6cL9Ff5v2DFRP0K1q
9zKDnulJJ7nHMN++j75zpwY5Hc9jNsIjEhUSdpQHiiClXgG8yuxP+flNS7IICgp0dycXGBHYe8lXPblludn4ZW9NV/TQn
4b/Mg6es8lMnf7XO/2T6tpLtUFe55awLJzhZTQOO3as+DtluNtKt7q1akcYqMYdrg0kAzzYkyy/V1Lkvs3rh01BQN
zbwjUXL4pIlepyL [email protected]
'allowed_origins' => ['https://myFrontEndApp.domain.com'],
$ npm install -g wrangler
$ wrangler login
$ npm run build
$ npx wrangler pages publish dist
Resources:
12/18/2023 - I stumbled upon a video where the root front end was received from: