A action helps you initialize a Nginx proxied web server on a Virtual Machine by simply setting up environment variables.
Required: The IP Address of the Virtual Machine hosting your server.
Not Required: SSH connection protocol. Default is set to "tcp".
Not Required: The port for host connection. Default is set to -> 22.
Required: The virtual machine user e.g root.
Not Required: Password to authenticate ssh connection. NB: It is not required if authentication is done using SSH private key.
Not Required: Authorized SSH key to authenticate ssh connection. NB: It is not required if authentication is not done with password.
Not Required: Associated passphrase if any, to the provided authorized SSH key. NB: It is not required if authentication is not done with password.
Required: The github repository with the server code you're trying to run.
Required: The application script to run your app. e.g npm start.
Required: The configured PORT. e.g 5000
Not Required: Environmental variables used to run your Node app. NB: variables will be populated in .env file on your virtual machine. Key-value pairs -> KEY=VALUE
- uses: gentcod/do-nginx-app@v2
- with:
- host: ${{ secrets.HOST }}
- user: ${{ secrets.USER }}
- key: ${{ secrets.KEY }}
- passphrase: ${{ secrets.PASSPHRASE }}
- github-repo: ${{ secrets.GITHUB_REPO }}
- startup-script: ${{ secrets.STARTUP_SCRIPT }}
- api-port: ${{ secrets.API_PORT }}