Reverse proxy service full tutorial is place in the articles
To setup reverse proxy. Execute script
chmod +x CopySites-Availiable.sh
.CopySites-Availiable.sh
ADDED to the script
Add ssl if required (maybe it should be added to the script)
sudo certbot --nginx -d feedback-api.productivitytools.top
sudo nginx -t
sudo nginx -s reload
Debug:
ls /etc/nginx/sites-enabled/
./CopySites-Availiable.sh is equal to ./CopySites-Availiable.sh 1
./CopySites-Availiable.sh 2 gives more details
If you want to execute script only for one file then:
sudo ./CopySites-Availiable.sh 2 transfers-api-t460.productivitytools.top
To use the deploy.yml GitHub Actions workflow, the self-hosted runner must be able to execute the CopySites-Availiable.sh script with sudo without being prompted for a password.
- SSH into the machine hosting the GitHub Action runner.
- Run
sudo visudoto edit the sudoers file. - Add the following line to the bottom of the file
pawel ALL=(ALL) NOPASSWD: ALL