Skip to content

Instantly share code, notes, and snippets.

@aaronpk aaronpk/connect.sh

Created Apr 6, 2016
Embed
What would you like to do?
ssh -R 6080:localhost:80 tunnlr.xyz
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;
}
}
@bcomnes

This comment has been minimized.

Copy link

bcomnes commented Apr 7, 2016

connect.sh is run from your laptop 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.