Skip to content

Environment variables ​

🚧 WORK IN PROGRESS 🚧

This documentation is still a work in progress. Some pages may be incomplete or missing. If you have any questions or suggestions, please open an issue on GitHub.

Basic configuration ​

NameDescriptionDefault value
SSTATIC_DATAThe path to the data directory./data
SSTATIC_APP_HOSTThe host on which the admin application will run. May be a glob pattern (e.g. *.example.com)*
SSTATIC_APP_PREFIXThe prefix for the admin application's routes./
SSTATIC_ENABLE_OPENAPIWhether to enable the OpenAPI endpoints.null[1]

Shortener configuration ​

NameDescriptionDefault value
SSTATIC_SHORTENER_HOSTThe host on which the shortener will run. May be a glob pattern (e.g. *.example.com)*
SSTATIC_SHORTENER_PREFIXThe prefix for the shortener's routes./
SSTATIC_CASE_INSENSITIVE_SLUGSWhether to treat short URL slugs as case-insensitive.false
SSTATIC_DEFAULT_SLUG_LENGTHThe default length of a random slug.8

Static files configuration ​

NameDescriptionDefault value
SSTATIC_FILES_HOSTThe host on which the files will run. May be a glob pattern (e.g. *.example.com)*
SSTATIC_FILES_PREFIXThe prefix for the files' routes./
SSTATIC_MAX_FILE_UPLOAD_SIZEThe maximum size of a file that can be uploaded in bytes.0

Authentication ​

OpenID Connect (OIDC) ​

NameDescription
SSTATIC_OIDC_CONFIGURATIONThe configuration for the OIDC provider.
SSTATIC_OIDC_CLIENT_IDThe client ID for the OIDC provider.
SSTATIC_OIDC_CLIENT_SECRETThe client secret for the OIDC provider.

Password ​

NameDescription
SSTATIC_AUTH_USERNAMEThe username for authentication.
SSTATIC_AUTH_PASSWORDThe password for authentication.
SSTATIC_AUTH_PASSWORD_HASHThe hash of the password for authentication.

Analytics ​

Plausible ​

NameDescriptionDefault value
PLAUSIBLE_DOMAIN_NAMEThe domain name for Plausible.
PLAUSIBLE_ENDPOINTThe endpoint for Plausible.https://plausible.io/api/event

Webhook ​

NameDescriptionDefault value
WEBHOOK_ENDPOINTEndpoint URL for webhook request.
WEBHOOK_METHODHTTP method for webhook request.GET
WEBHOOK_BODY_TEMPLATE_FILEThe path to request body template file.
Analytics__Webhook__Headers__*HTTP headers for webhook request (e.g. Analytics__Webhook__Headers__Authorization=Bearer ...).

  1. By default, OpenAPI endpoints will be disabled, unless ASPNETCORE_ENVIRONMENT variable is set to Development or Staging. â†Šī¸Ž

Released under the MIT License.