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 â
| Name | Description | Default value |
|---|---|---|
SSTATIC_DATA | The path to the data directory. | /data |
SSTATIC_APP_HOST | The host on which the admin application will run. May be a glob pattern (e.g. *.example.com) | * |
SSTATIC_APP_PREFIX | The prefix for the admin application's routes. | / |
SSTATIC_ENABLE_OPENAPI | Whether to enable the OpenAPI endpoints. | null[1] |
Shortener configuration â
| Name | Description | Default value |
|---|---|---|
SSTATIC_SHORTENER_HOST | The host on which the shortener will run. May be a glob pattern (e.g. *.example.com) | * |
SSTATIC_SHORTENER_PREFIX | The prefix for the shortener's routes. | / |
SSTATIC_CASE_INSENSITIVE_SLUGS | Whether to treat short URL slugs as case-insensitive. | false |
SSTATIC_DEFAULT_SLUG_LENGTH | The default length of a random slug. | 8 |
Static files configuration â
| Name | Description | Default value |
|---|---|---|
SSTATIC_FILES_HOST | The host on which the files will run. May be a glob pattern (e.g. *.example.com) | * |
SSTATIC_FILES_PREFIX | The prefix for the files' routes. | / |
SSTATIC_MAX_FILE_UPLOAD_SIZE | The maximum size of a file that can be uploaded in bytes. | 0 |
Authentication â
OpenID Connect (OIDC) â
| Name | Description |
|---|---|
SSTATIC_OIDC_CONFIGURATION | The configuration for the OIDC provider. |
SSTATIC_OIDC_CLIENT_ID | The client ID for the OIDC provider. |
SSTATIC_OIDC_CLIENT_SECRET | The client secret for the OIDC provider. |
Password â
| Name | Description |
|---|---|
SSTATIC_AUTH_USERNAME | The username for authentication. |
SSTATIC_AUTH_PASSWORD | The password for authentication. |
SSTATIC_AUTH_PASSWORD_HASH | The hash of the password for authentication. |
Analytics â
Plausible â
| Name | Description | Default value |
|---|---|---|
PLAUSIBLE_DOMAIN_NAME | The domain name for Plausible. | |
PLAUSIBLE_ENDPOINT | The endpoint for Plausible. | https://plausible.io/api/event |
Webhook â
| Name | Description | Default value |
|---|---|---|
WEBHOOK_ENDPOINT | Endpoint URL for webhook request. | |
WEBHOOK_METHOD | HTTP method for webhook request. | GET |
WEBHOOK_BODY_TEMPLATE_FILE | The path to request body template file. | |
Analytics__Webhook__Headers__* | HTTP headers for webhook request (e.g. Analytics__Webhook__Headers__Authorization=Bearer ...). |
By default, OpenAPI endpoints will be disabled, unless
ASPNETCORE_ENVIRONMENTvariable is set toDevelopmentorStaging. âŠī¸