Giter Site home page Giter Site logo

retro-server's Introduction

Retro Server

The retro server.
NOTE: retro-server depends on libretro , so build this first!

Install

$ pip install --upgrade pip
$ pip install .
$ ./install.sh SERVER_DIRECTORY

Usage

Usage: retro-server [OPTIONS] ...

-h, --help                  Show help text
-c, --config-dir=PATH       Set path to server config directory
-R, --create-regkey=PATH    Create registration key and store it
                            to given file.

Files

  .../server-config/           Server base config dir
      |__ config.txt           Config file
      |__ certs/               Directory for key and cert
      |   |__ key.pem          Server's private key
      |   |__ cert.pem         Server's certificate
      |__ msg/                 Directory holding unsent messages
      |   |__ USERID_1.db      Sqlitedb with messages for USERID_1
      |   |__ USERID_2.db      Sqlitedb with messages for USERID_2
      |   |__ ...
      |__ server.db            Database for userids/regkeys
      |__ uploads/             Directory holding uploaded files
      |__ users/               Directory holding all user keys
          |__ USERID_1.pem     Retrokey of USERID_1
          |__ USERID_2.pem     Retrokey of USERID_2
          |__ ...

Config file

The config file config.txt has the following format:

  [default]
  loglevel = STRING (ERROR|WARN|INFO|DEBUG)
  logfile  = PATH
  logformat = FORMAT
  daemonize = BOOL
  pidfile = PATH
  userdir = PATH
  uploaddir = PATH
  msgdir = PATH
  recv_timeout = SECONDS
  accept_timeout = SECONDS
  [server]
  address = HOSTNAME
  port = PORT
  [fileserver]
  enabled = BOOL
  port = PORT
  max_filesize = BYTES
  delete_files = BOOL
  [audioserver]
  enabled = BOOL
  port = PORT

TODO

  • Make daemon

retro-server's People

Contributors

lukwies avatar

Watchers

 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.