1. Home
  2. Docs
  3. Spectr
  4. The configuration
  5. Server block

Server block

This block describes the global service settings and HTTP server settings.

Description of parameters:

  • node — server name, used for informational purposes.
  • http_port — the port used to run the HTTP server.
  • http_threads — the number of HTTP server streams.
  • global_session_limit — maximum number of client sessions.
  • session — session timeout since the last call.
  • auth — authorization parameters.
  • client — timeout for client connection, in seconds (0 for infinite timeout).

Additional authorization parameters:

  • enabled — includes authorization.
  • type — type of authorization.
  • restrict — includes checking the client's IP address.
  • params — additional parameters (depending on the type of authorization).

Available types of authorization:

  • null — blank authorization.
  • sl — hash authorization (similar to secure_link in nginx).
  • token — authorization using a one-time token and session mechanism.

Additional type parameters token:

  • secret — the secret used in the token.
  • account_mode — if «one_key», then the account can only have one unused key, when you add a new one, all the old ones are deleted.
  • check — includes account verificationaccount_mode should be specified).

Additional type parameters sl:

  • secret — a secret used as a secret part of the Secure Link. A hash shaped by a mask {secret}{ip}{expiration}or {secret}{expiration}if the parameter is disabled restrict.