Skip to content

Explorer + Nginx Proxy + Geth Connecting issues. #49

@gateway

Description

@gateway

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 ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions