Created
April 6, 2016 22:42
-
-
Save aaronpk/cdb9bb83f380484c5f600bbba62f5ea9 to your computer and use it in GitHub Desktop.
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
ssh -R 6080:localhost:80 tunnlr.xyz |
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
server { | |
listen 66.175.221.95:80; | |
server_name tunnlr.xyz; | |
location / { | |
proxy_pass http://127.0.0.1:6080; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_redirect default; | |
proxy_set_header Host $http_host; | |
} | |
} | |
server { | |
listen 66.175.221.95:443 ssl; | |
server_name tunnlr.xyz; | |
ssl_certificate server.crt; | |
ssl_certificate_key server.key; | |
location / { | |
proxy_pass http://127.0.0.1:6080; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_redirect default; | |
proxy_set_header Host $http_host; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
connect.sh is run from your laptop 👍