Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access panamax.local:3000 from outside #555

Open
Cellenta opened this issue Dec 9, 2015 · 1 comment
Open

access panamax.local:3000 from outside #555

Cellenta opened this issue Dec 9, 2015 · 1 comment

Comments

@Cellenta
Copy link

Cellenta commented Dec 9, 2015

Hey, I am working on MacOS and I have access to the server via SSH.
How can I forward this local site to a client, so I can access from any other computer in my office?

@jantonacci
Copy link

For one-time access, you can use SSH tunnels then open http;//localhost:3000/ :

image

On Ubuntu, I installed nginx and configured a reverse proxy to the Panamax URL:

server {
    listen 3000;
    server_name localhost;
    root html;
    index index.html index.htm;
    ssl on;
    ssl_certificate cert.pem;
    ssl_certificate_key cert.key;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1.2;
    ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
    ssl_prefer_server_ciphers on;

    location / {
        proxy_pass http://10.0.0.200:3000/;
        proxy_read_timeout 60s;
        proxy_set_header          X-Real-IP       $remote_addr;
        proxy_set_header          X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
server {
    listen 3002;
    server_name localhost;
    root html;
    index index.html index.htm;
    ssl on;
    ssl_certificate cert.pem;
    ssl_certificate_key cert.key;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1.2;
    ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
    ssl_prefer_server_ciphers on;

    location / {
        proxy_pass http://10.0.0.200:3002/;
        proxy_read_timeout 60s;
        proxy_set_header          X-Real-IP       $remote_addr;
        proxy_set_header          X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants