docs
Configuration

Configuration

SVR.JS can be configured by modifying config.json file.

config.json properties

The config.json file contains various properties that you can customize to configure SVR.JS according to your specific requirements. Below are the available properties:

General Configuration

  • users (Array of Objects, SVR.JS 3.0.0 or newer)
    • Users list for HTTP authentication. Use svrpasswd tool to add, modify or delete users.
      • name: User name for HTTP authentication (String)
      • pass: Salted hash of the password (default SHA256 with appended salt, String)
      • salt: Salt used to generate the SHA256 hash (String)
      • pbkdf2: Flag used to determine, if hash is PBKDF2 (Boolean, SVR.JS 3.7.0 or newer)
      • scrypt: Flag used to determine, if hash is scrypt (Boolean, SVR.JS 3.7.0 or newer)
  • port (Number or String, required)
    • HTTP port for SVR.JS to listen on. For SVR.JS 3.6.0 and later, it can also be a Unix socket or Windows named pipe. For SVR.JS 3.9.0 and later, this can also be an IP address along with a port like _"192.168....