Skip to content

Environment Variables

All variables use the OXICLOUD_ prefix.

Server

VariableDefaultDescription
OXICLOUD_STORAGE_PATH./storageRoot storage directory
OXICLOUD_STATIC_PATH./staticStatic files directory
OXICLOUD_SERVER_PORT8086Server port
OXICLOUD_SERVER_HOST127.0.0.1Server bind address
OXICLOUD_BASE_URL(auto)Public base URL for share links

Database

VariableDefaultDescription
OXICLOUD_DB_CONNECTION_STRINGpostgres://postgres:postgres@localhost:5432/oxicloudPostgreSQL connection string
OXICLOUD_DB_MAX_CONNECTIONS20Max pool connections
OXICLOUD_DB_MIN_CONNECTIONS5Min pool connections

Authentication

VariableDefaultDescription
OXICLOUD_JWT_SECRET(random)JWT signing secret
OXICLOUD_ACCESS_TOKEN_EXPIRY_SECS3600Access token lifetime (seconds)
OXICLOUD_REFRESH_TOKEN_EXPIRY_SECS2592000Refresh token lifetime (seconds)

Feature Flags

VariableDefaultDescription
OXICLOUD_ENABLE_AUTHtrueEnable authentication
OXICLOUD_ENABLE_USER_STORAGE_QUOTASfalsePer-user storage quotas
OXICLOUD_ENABLE_FILE_SHARINGtrueFile/folder sharing
OXICLOUD_ENABLE_TRASHtrueTrash / recycle bin
OXICLOUD_ENABLE_SEARCHtrueSearch

OIDC / SSO

See the OIDC configuration guide for details.

VariableDefaultDescription
OXICLOUD_OIDC_ENABLEDfalseEnable OIDC
OXICLOUD_OIDC_ISSUER_URLOIDC issuer URL
OXICLOUD_OIDC_CLIENT_IDClient ID
OXICLOUD_OIDC_CLIENT_SECRETClient secret
OXICLOUD_OIDC_REDIRECT_URIhttp://localhost:8086/api/auth/oidc/callbackCallback URL
OXICLOUD_OIDC_SCOPESopenid profile emailRequested scopes
OXICLOUD_OIDC_FRONTEND_URLhttp://localhost:8086Frontend URL
OXICLOUD_OIDC_AUTO_PROVISIONtrueAuto-create users on first SSO login
OXICLOUD_OIDC_ADMIN_GROUPSGroups that grant admin role
OXICLOUD_OIDC_DISABLE_PASSWORD_LOGINfalseHide password form when OIDC enabled
OXICLOUD_OIDC_PROVIDER_NAMESSODisplay name for the provider

WOPI (Office Editing)

See the WOPI configuration guide for details.

VariableDefaultDescription
OXICLOUD_WOPI_ENABLEDfalseEnable WOPI
OXICLOUD_WOPI_DISCOVERY_URLCollabora/OnlyOffice discovery URL
OXICLOUD_WOPI_SECRET(JWT secret)WOPI token signing key
OXICLOUD_WOPI_TOKEN_TTL_SECS86400Token lifetime
OXICLOUD_WOPI_LOCK_TTL_SECS1800Lock expiration

Internal Defaults (not configurable via env)

ParameterDefault
File cache TTL60 s
Directory cache TTL120 s
Max cache entries10 000
Large file threshold100 MB
Streaming chunk size1 MB
Max parallel chunks8
Trash retention30 days
Argon2id memory cost64 MB
Argon2id time cost3 iterations

Released under the MIT License.