Skip to content

3. Server Configuration

LightJack05 edited this page Oct 10, 2024 · 4 revisions

The configuration file

The AnonKey server configuration file is a JSON file named settings.json, stored in the applciation runtime directory.

Note

The default location for the runtime directory is /opt/AnonKey/

This file contains the server JWT issuer singing key, ans well as settings used by AnonKey to configure the server.

Warning

Entering invalid values will cause AnonKey to regenerate the settings.json file with new, valid values. Please create a backup of the original file before editing it.

Configuration options

_jwtIssuerSigingKey: This contains the issuer signing key that is used to sign JWT tokens.

Warning

Changing this value will result in all active sessions becoming invalid. This can be useful, if you experience session hijacking on your server, but is usually not an intended effect.

_serverUserPasswordPepper: This is a 32-bytes long base64 encoded bytearray. It is the pepper applied to user passwords while they are verified.

Warning

Changing this value will make all stored user password hashes no longer match the intended passwords. Do not change this if you already have a database that contains production data.

Clone this wiki locally