meterio / nomp

GNU General Public License v2.0
16 stars 15 forks source link

Website Issue #9

Closed pool2mine closed 1 year ago

pool2mine commented 1 year ago

Hi, i am testing your repo and everything is running excellent, i can see the API on my browser, but somehow the api is not populating the website. am i missing something? i'm not sure if i need to edit a js file for the website or something like that. sorry for the question, i'm just new with this pool.

I have nginx running, and already set the config.json host to 127.0.0.1, on port 8080... this is my nginx file:

upstream api {
    server 127.0.0.1:8080;
}

server {
    listen 80;
    server_name <my-ip>;
    root /home/pool2mine/test2/website;

    location / {
    }

    location /static {
        proxy_pass    http://127.0.0.1:8080;
        expires 15m;
    }

    location /api {
        proxy_pass http://api;
    }

    location ~ ^/(tbs|workers|stats|blocks) {
        proxy_pass    http://127.0.0.1:8080;
    }

    location ~ ^/api/(live|pool)_stats {
        proxy_pass    http://127.0.0.1:8080;
    }
}
pool2mine commented 1 year ago

Sorry for the dumb question... nobody should work after 3:00am lol... my nginx file was just missing a slash "/" after api in proxy_pass... website works now!