Giter Site home page Giter Site logo

ro-tex / pinner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skynetlabs/pinner

0.0 0.0 0.0 607 KB

Ensures that relevant skyfiles will be properly pinned by the portal even when individual servers are removed

License: MIT License

Shell 0.53% Go 96.84% Makefile 2.48% Dockerfile 0.15%

pinner's Introduction

pinner

Ensures that relevant skyfiles will be properly pinned by the portal even when individual servers are removed

Environment variables

Required

  • SERVER_DOMAIN: current server name, e.g. eu-ger-1.siasky.net
  • SKYNET_DB_USER: database user
  • SKYNET_DB_PASS: database password
  • SKYNET_DB_HOST: database host, e.g. mongo
  • SKYNET_DB_PORT: database port, e.g. 27017
  • SIA_API_PASSWORD: API password for the local skyd instance. Typically available in the /home/user/skynet-webportal/docker/data/sia/apipassword file.

Optional

  • SKYNET_ACCOUNTS_HOST: the host where accounts service is running, e.g. 10.10.10.70
  • SKYNET_ACCOUNTS_PORT: the port on which accounts service is running, e.g. 3000
  • PINNER_LOG_FILE: path to pinner's log file, relative to /home/user/skynet-webportal/docker/data/pinner/logs/ directory. Directory traversal (e.g. ../) is not allowed. If this value is empty, pinner won't log to disk!
  • PINNER_LOG_LEVEL: log level, defaults to info
  • PINNER_SCANNER_THREADS: number of parallel threads pinning files, defaults to 5
  • PINNER_SLEEP_BETWEEN_SCANS: defines the time to wait between initiating new scans, e.g. if this value is 10 hours and a scan was triggered at 10:00, the next scan will be triggered at 20:00 regardless of how long the first scan took. If there is a scan running when the next scan is scheduled to start the new scan doesn't start (we don't overlap scans). This value is given in seconds and it defaults to 19 hours.
  • API_HOST: host on which skyd is running, e.g. 10.10.10.10
  • API_PORT: port on which skyd is running, e.g. 9980

pinner's People

Contributors

ro-tex avatar msevey avatar dependabot[bot] avatar mrcnski avatar kwypchlo avatar

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.