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

Explorer + Nginx Proxy + Geth Connecting issues. #49

Open
gateway opened this issue May 23, 2018 · 2 comments
Open

Explorer + Nginx Proxy + Geth Connecting issues. #49

gateway opened this issue May 23, 2018 · 2 comments

Comments

@gateway
Copy link

gateway commented May 23, 2018

Hi, thank you for taking the time to write this code.

I have currently set this up on one of my hosts and and am having a hard time connecting..

image

Current setup.

  1. Explorer is running on port 8000 with no errors in the console I can see
  2. Nginx is set up as a proxy for port 80

config..

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        server_name mydomain.com;
 
        location / {
                proxy_pass http://localhost:8000;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;
            }
}

I'm able to go to mydomain.com and see the server running.

I have geth installed but do not want to install the full blockchain so im using the --light command..

No matter what command I try the "Allow Access to Geth and Refresh the Page" never goes away..

Example geth commands.

geth --light --rpc --rpcaddr localhost --rpcport 8545 --rpcapi "web3,eth" --rpccorsdomain "http://localhost:8000"
geth --light --rpc --rpcaddr localhost --rpcport 8545 --rpcapi "web3,eth" --rpccorsdomain "https://mydomain.com"
geth --light --rpc --rpcaddr localhost --rpcport 8545 --rpcapi "web3,eth" --rpccorsdomain "http://mydomain.com"
geth --light --rpc --rpcaddr localhost --rpcport 8545 --rpcapi "web3,eth" --rpccorsdomain "http://localhost"

Any thoughts ..

@gateway
Copy link
Author

gateway commented May 23, 2018

Additional stuff.. I forgot to look in the web console.. here is some errors..

Geth is running and the App is running..

image

I also changed in app.config my servers ip, and the servers domain host.. but no luck..

@sudhaaddagiri
Copy link

Hi,
I had same issue.
did you get any solution?

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