Smos

A comprehensive self-management system

The Smos Server

You can set up your own Smos server to host your own syncing.

A community sync-server has been set up at https://api.smos.cs-syd.eu in case do not want to do that

Installation

stack install autoexporter
stack install smos-server

Running

To run the server, run the following command:

$ smos-server serve

Reference

Arguments

Usage: smos-server COMMAND [--config-file FILEPATH]
  Smos Server version 0.1.0

Available options:
  -h,--help                Show this help text
  --config-file FILEPATH   The config file to use

Available commands:
  serve                    Serve as the sync server

Environment

Available environment variables:

  SMOS_SERVER_CONFIG_FILE
                         Config file
  SMOS_SERVER_DATABASE_FILE
                         The file to store the server
                         database in
  SMOS_SERVER_LOG_LEVEL
                         The minimal severity of log
                         messages
  SMOS_SERVER_PORT
                         The port to serve web requests on
  SMOS_SERVER_SIGNING_KEY_FILE
                         The file to store the JWT signing
                         key in
  SMOS_SERVER_UUID_FILE
                         The file to store the server uuid in

Configuration

# Configuration
log-level: # optional
  # The minimal severity for log messages
  <string>
uuid-file: # optional
  # The file in which to store the server uuid
  <string>
database-file: # optional
  # The file in which to store the database
  <string>
signing-key-file: # optional
  # The file in which to store signing key for JWT tokens
  <string>
port: # optional
  # The port on which to serve api requests
  <number>