Giter Site home page Giter Site logo

Comments (3)

JoeGruffins avatar JoeGruffins commented on June 25, 2024

Such a setting would be useful for an operator? I can see where it would help if you were running a testnet site from the same machine, is that where you are coming from?

from dcrstakepool.

isuldor avatar isuldor commented on June 25, 2024

Yeah the usefulness we're talking about here is probably really mild. But I think it's wise to run dcrstakepool as a user with restricted permissions (and a false shell like /usr/bin/nologin). Personally I like to pick a home directory under under /opt, although some might prefer /var or something else. That results in the certificates needing to be in /opt/dcrstakepool/.dcrstakepool. An ugly workaround would be to specify the full cert path in the config file like:

stakepooldcerts=/opt/dcrstakepool/certs/node01.cert,/opt/dcrstakepool/certs/node02.cert,/opt/dcrstakepool/certs/node03.cert,/opt/dcrstakepool/certs/node04.cert,/opt/dcrstakepool/certs/node05.cert,/opt/dcrstakepool/certs/node06.cert

Another consideration is if this software is ever distributed via a package manager, where it would be useful to configure any of the necessary paths. A single --homedir fits nicely in that case. For reference, I think politeia uses a homedir variable.

from dcrstakepool.

JoeGruffins avatar JoeGruffins commented on June 25, 2024

Sounds like good reasons to me. @jholdstock any thoughts?
I need to look how the other repo's do it, but I guess it make sense to be a command line only command? If the conf is also located in that directory.

from dcrstakepool.

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.