Skip to content

Instantly share code, notes, and snippets.

@uurtech
Created September 17, 2019 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uurtech/956a4fe8d74a6668843f69552ecf3f2f to your computer and use it in GitHub Desktop.
Save uurtech/956a4fe8d74a6668843f69552ecf3f2f to your computer and use it in GitHub Desktop.
Install app to server (nginx config)
#/bin/bash
ssh user@IP " echo 'server {
listen 80;
server_name sysmon.tecmint.lan;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:5000;
}
}
}' > /etc/nginx/sites-available/kenz.wawlabs.com ; systemctl restart nginx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment