Created
September 17, 2019 15:11
-
-
Save uurtech/956a4fe8d74a6668843f69552ecf3f2f to your computer and use it in GitHub Desktop.
Install app to server (nginx config)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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