metaspartan / explorer

Ethereum Block Explorer (ETHExplorer V2) - Realtime Price Ticker, Shapeshift.io Integration, etc. (Project is currently not under active development, if you have a bug fix, please open a PR) My current project can be found at https://github.com/metaspartan/denarius (D a better cryptocurrency than ETH)
Other
486 stars 330 forks source link

Explorer + Nginx Proxy + Geth Connecting issues. #49

Open gateway opened 6 years ago

gateway commented 6 years ago

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 commented 6 years ago

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 commented 4 years ago

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