bin.config module

Application configuration

The configuration is loaded from the environment variables, you may override them “manually” or via a .env file located in the current directory. Alternativaly you can use the --rtdbin-config command line option to define a dotenv to load instead of ./.env.

It tries to correctly configure logging according to the server software you are using

The options are:

  • RTDBIN_HOST: The HTTP address the embedded server binds (default: localhost)

  • RTDBIN_PORT: The HTTP port the embedded server binds (default: 8012)

  • RTDBIN_MAXSIZE: The maximum Content-Length accepted for new snippets (default: 16kiB)

  • RTDBIN_IDENTSIZE: The length of generated unique identifier for new snippets (default: 6)

  • RTDBIN_DEFAULT_LANGUAGE: The default language selected in the new snippet form

  • RTDBIN_DEFAULT_MAXUSAGE: The default maximum usages before a snippet is automatically removed, 0 means no maximum (default: 0)

  • RTDBIN_DEFAULT_LIFETIME: The default time before a snippet is automatically removed, 0 means no limit (default: 0)

  • REDIS_HOST: The Redis host adress to connect to

  • REDIS_PORT: The Redis port to connect to

  • REDIS_DB: The Redis database to connect to