Giter VIP home page Giter VIP logo

Comments (7)

sammy007 avatar sammy007 commented on July 30, 2024

After ./build.sh within www folder you will have www/dist folder with static website generated. U must serve it as static website:

location / {
    root    /path/to/www/dist;
}

Edit your / location properly. if you see "frontend is down" look at js console in browser for errors.

And as i said, don't use ember server ... in production.

from open-ethereum-pool.

mmitech avatar mmitech commented on July 30, 2024

Ok, got it, thank you.

from open-ethereum-pool.

sammy007 avatar sammy007 commented on July 30, 2024

To make it clear, browser will poll api from client side, if you see "frontend down" inspect errors using built in browser development tools, you will see a reason why you can't access API in js console. Api must be available on your.domain/api/stats. You can even bind api in config to 0.0.0.0 and don't configure nginx upstream for it.

from open-ethereum-pool.

mmitech avatar mmitech commented on July 30, 2024

I will try it as soon as I get access to the server again, will reply/close this issue when I fix the problem.
Thanks.

from open-ethereum-pool.

mmitech avatar mmitech commented on July 30, 2024

Fixed, Thanks.

from open-ethereum-pool.

zimbo123 avatar zimbo123 commented on July 30, 2024

Hello,

i have some Problems with the API in the ngnix.conf too. I don't know, if i configured it correct.
Here is the part of the config-file:

server {
listen 80;
server_name Sub.domainname.com;
}
upstream api {
server 127.0.0.1:8080;
}
location /api {
proxy_pass http://api;
}
location / {
proxy_pass http://localhost:8082;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

    # Enables WS support
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_redirect off;
 root    _/home/user/open-ethereum-pool/www/dist;_
}

Is that correct?
For the configuration as a subdomain i must link in the Apache-Server to the Folder _/home/user/open-ethereum-pool/www/dist , is that correct?

Thank you very much.

Best regards

Zimbo

from open-ethereum-pool.

goodthebest avatar goodthebest commented on July 30, 2024

@mmitech can you please tell how did you fix it? I'm having exactly the same issue as you did.

from open-ethereum-pool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.