Note Mark
  • Support The Project
  • 02 - Configuration

    Configuration of the Note Mark is done through environment variables. See the below options:

    KeyDescriptionDefaultDocker Default
    BIND__HOSTWhat ip to listen on127.0.0.10.0.0.0
    BIND__PORTPort to bind to80808080
    BIND__UNIX_SOCKETListen on unix socket, overrides HOST/PORT when set--
    AUTH_TOKEN__SECRETbase64 encoded secret (must be at least 32 bytes)
    AUTH_TOKEN__EXPIRYseconds until a token expires259200259200
    DATA_PATHWhere to store app data/data
    STATIC_PATHHost static files-/static
    PUBLIC_URLThe URL where app is accessed from
    ENABLE_INTERNAL_SIGNUPWhether to enable new internal accountstruetrue
    ENABLE_INTERNAL_LOGINWhether to enable new logins for internal accountstruetrue
    ENABLE_ANONYMOUS_USER_SEARCHWhether to allow public access to user searchtruetrue
    FILE_SIZE_LIMITMax file size for uploaded assets12M12M
    OIDC__DISPLAY_NAMEThe provider name (used for UI)--
    OIDC__PROVIDER_NAMEThe provider name (used for DB)--
    OIDC__ISSUER_URLThe OIDC issuer url--
    OIDC__CLIENT_IDThe OIDC client id--
    OIDC__ENABLE_USER_CREATIONWhether to automatically create userstruetrue
    LOGGING__LEVELLogging level (debug, info, warn, error)infoinfo
    LOGGING__ENABLE_JSONWhether to enable JSON structured loggingtruetrue
    ENV_MODE“production” or “development”productionproduction

    AUTH_TOKEN__SECRET

    A secret can be generated using:

    openssl rand -base64 128
    

    OIDC

    Single-Sign-On is handled via OpenID Connect and OAuth2. OIDC Provider Examples.

    PUBLIC_URL

    This MUST be set to your front-end URL and NOT end in a trailing slash e.g. https://notemark.example.com.