Files
ocis/services/_includes/storage-users_configvars.md
T
2023-04-06 09:02:34 +00:00

13 KiB

Environment Variables

Name Type Default Value Description
OCIS_TRACING_ENABLED
STORAGE_USERS_TRACING_ENABLED
bool false Activates tracing.
OCIS_TRACING_TYPE
STORAGE_USERS_TRACING_TYPE
string The type of tracing. Defaults to "", which is the same as "jaeger". Allowed tracing types are "jaeger" and "" as of now.
OCIS_TRACING_ENDPOINT
STORAGE_USERS_TRACING_ENDPOINT
string The endpoint of the tracing agent.
OCIS_TRACING_COLLECTOR
STORAGE_USERS_TRACING_COLLECTOR
string The HTTP endpoint for sending spans directly to a collector, i.e. http://jaeger-collector:14268/api/traces. Only used if the tracing endpoint is unset.
OCIS_LOG_LEVEL
STORAGE_USERS_LOG_LEVEL
string The log level. Valid values are: "panic", "fatal", "error", "warn", "info", "debug", "trace".
OCIS_LOG_PRETTY
STORAGE_USERS_LOG_PRETTY
bool false Activates pretty log output.
OCIS_LOG_COLOR
STORAGE_USERS_LOG_COLOR
bool false Activates colorized log output.
OCIS_LOG_FILE
STORAGE_USERS_LOG_FILE
string The path to the log file. Activates logging to this file if set.
STORAGE_USERS_DEBUG_ADDR string 127.0.0.1:9159 Bind address of the debug server, where metrics, health, config and debug endpoints will be exposed.
STORAGE_USERS_DEBUG_TOKEN string Token to secure the metrics endpoint.
STORAGE_USERS_DEBUG_PPROF bool false Enables pprof, which can be used for profiling.
STORAGE_USERS_DEBUG_ZPAGES bool false Enables zpages, which can be used for collecting and viewing in-memory traces.
STORAGE_USERS_GRPC_ADDR string 127.0.0.1:9157 The bind address of the GRPC service.
STORAGE_USERS_GRPC_PROTOCOL string tcp The transport protocol of the GPRC service.
STORAGE_USERS_HTTP_ADDR string 127.0.0.1:9158 The bind address of the HTTP service.
STORAGE_USERS_HTTP_PROTOCOL string tcp The transport protocol of the HTTP service.
OCIS_JWT_SECRET
STORAGE_USERS_JWT_SECRET
string The secret to mint and validate jwt tokens.
OCIS_REVA_GATEWAY
REVA_GATEWAY
string 127.0.0.1:9142 The CS3 gateway endpoint.
OCIS_GRPC_CLIENT_TLS_MODE string TLS mode for grpc connection to the go-micro based grpc services. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows to use transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server ceritificate verification.
OCIS_GRPC_CLIENT_TLS_CACERT string Path/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the go-micro based grpc services.
STORAGE_USERS_SKIP_USER_GROUPS_IN_TOKEN bool false Disables the loading of user's group memberships from the reva access token.
STORAGE_USERS_DRIVER string ocis The storage driver which should be used by the service. Defaults to 'ocis', Supported values are: 'ocis', 's3ng' and 'owncloudsql'. The 'ocis' driver stores all data (blob and meta data) in an POSIX compliant volume. The 's3ng' driver stores metadata in a POSIX compliant volume and uploads blobs to the s3 bucket.
OCIS_DECOMPOSEDFS_METADATA_BACKEND
STORAGE_USERS_OCIS_METADATA_BACKEND
string xattrs The backend to use for storing metadata. Supported values are 'xattrs' and 'ini'. The setting 'xattrs' uses extended attributes to store file metadata while 'ini' uses a dedicated file to store file metadata. Defaults to 'xattrs'.
STORAGE_USERS_OCIS_ROOT string ~/.ocis/storage/users The directory where the filesystem storage will store blobs and metadata. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/users.
STORAGE_USERS_OCIS_USER_LAYOUT string {{.Id.OpaqueId}} Template string for the user storage layout in the user directory.
STORAGE_USERS_PERMISSION_ENDPOINT,STORAGE_USERS_OCIS_PERMISSIONS_ENDPOINT string 127.0.0.1:9191 Endpoint of the permissions service. The endpoints can differ for 'ocis' and 's3ng'.
STORAGE_USERS_OCIS_PERSONAL_SPACE_ALIAS_TEMPLATE string {{.SpaceType}}/{{.User.Username | lower}} Template string to construct personal space aliases.
STORAGE_USERS_OCIS_GENERAL_SPACE_ALIAS_TEMPLATE string {{.SpaceType}}/{{.SpaceName | replace " " "-" | lower}} Template string to construct general space aliases.
STORAGE_USERS_OCIS_SHARE_FOLDER string /Shares Name of the folder jailing all shares.
STORAGE_USERS_OCIS_MAX_ACQUIRE_LOCK_CYCLES int 20 When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.
STORAGE_USERS_OCIS_LOCK_CYCLE_DURATION_FACTOR int 30 When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.
STORAGE_USERS_OCIS_MAX_CONCURRENCY int 0 Maximum number of concurrent go-routines. Higher values can potentially get work done faster but will also cause more load on the system. Values of 0 or below will be ignored and the default value of 100 will be used.
OCIS_ASYNC_UPLOADS
STORAGE_USERS_OCIS_ASYNC_UPLOADS
bool false Enable asynchronous file uploads.
OCIS_SPACES_MAX_QUOTA
STORAGE_USERS_OCIS_MAX_QUOTA
uint64 0 Set a global max quota for spaces in bytes. A value of 0 equals unlimited. If not using the global OCIS_SPACES_MAX_QUOTA, you must define the FRONTEND_MAX_QUOTA in the frontend service.
STORAGE_USERS_S3NG_METADATA_BACKEND string xattrs The backend to use for storing metadata. Supported values are 'xattrs' and 'ini'. The setting 'xattrs' uses extended attributes to store file metadata while 'ini' uses a dedicated file to store file metadata. Defaults to 'xattrs'.
STORAGE_USERS_S3NG_ROOT string ~/.ocis/storage/users The directory where the filesystem storage will store metadata for blobs. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/users.
STORAGE_USERS_S3NG_USER_LAYOUT string {{.Id.OpaqueId}} Template string for the user storage layout in the user directory.
STORAGE_USERS_PERMISSION_ENDPOINT
STORAGE_USERS_S3NG_PERMISSIONS_ENDPOINT
string 127.0.0.1:9191 Endpoint of the permissions service. The endpoints can differ for 'ocis' and 's3ng'.
STORAGE_USERS_S3NG_REGION string default Region of the S3 bucket.
STORAGE_USERS_S3NG_ACCESS_KEY string Access key for the S3 bucket.
STORAGE_USERS_S3NG_SECRET_KEY string Secret key for the S3 bucket.
STORAGE_USERS_S3NG_ENDPOINT string Endpoint for the S3 bucket.
STORAGE_USERS_S3NG_BUCKET string Name of the S3 bucket.
STORAGE_USERS_S3NG_PERSONAL_SPACE_ALIAS_TEMPLATE string {{.SpaceType}}/{{.User.Username | lower}} Template string to construct personal space aliases.
STORAGE_USERS_S3NG_GENERAL_SPACE_ALIAS_TEMPLATE string {{.SpaceType}}/{{.SpaceName | replace " " "-" | lower}} Template string to construct general space aliases.
STORAGE_USERS_S3NG_SHARE_FOLDER string /Shares Name of the folder jailing all shares.
STORAGE_USERS_S3NG_MAX_ACQUIRE_LOCK_CYCLES int 20 When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.
STORAGE_USERS_S3NG_LOCK_CYCLE_DURATION_FACTOR int 30 When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.
STORAGE_USERS_S3NG_MAX_CONCURRENCY int 0 Maximum number of concurrent go-routines. Higher values can potentially get work done faster but will also cause more load on the system. Values of 0 or below will be ignored and the default value of 100 will be used.
STORAGE_USERS_OWNCLOUDSQL_DATADIR string ~/.ocis/storage/owncloud The directory where the filesystem storage will store SQL migration data. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/owncloud.
STORAGE_USERS_OWNCLOUDSQL_SHARE_FOLDER string /Shares Name of the folder jailing all shares.
STORAGE_USERS_OWNCLOUDSQL_LAYOUT string {{.Username}} Path layout to use to navigate into a users folder in an owncloud data directory
STORAGE_USERS_OWNCLOUDSQL_UPLOADINFO_DIR string ~/.ocis/storage/uploadinfo The directory where the filesystem will store uploads temporarily. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/uploadinfo.
STORAGE_USERS_OWNCLOUDSQL_DB_USERNAME string owncloud Username for the database.
STORAGE_USERS_OWNCLOUDSQL_DB_PASSWORD string owncloud Password for the database.
STORAGE_USERS_OWNCLOUDSQL_DB_HOST string Hostname or IP of the database server.
STORAGE_USERS_OWNCLOUDSQL_DB_PORT int 3306 Port that the database server is listening on.
STORAGE_USERS_OWNCLOUDSQL_DB_NAME string owncloud Name of the database to be used.
STORAGE_USERS_OWNCLOUDSQL_USERS_PROVIDER_ENDPOINT string localhost:9144 Endpoint of the users provider.
STORAGE_USERS_DATA_SERVER_URL string http://localhost:9158/data URL of the data server, needs to be reachable by the data gateway provided by the frontend service or the user if directly exposed.
STORAGE_USERS_DATA_GATEWAY_URL string https://localhost:9200/data URL of the data gateway server
STORAGE_USERS_TRANSFER_EXPIRES int64 86400 the time after which the token for upload postprocessing expires
OCIS_EVENTS_ENDPOINT
STORAGE_USERS_EVENTS_ENDPOINT
string 127.0.0.1:9233 The address of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture.
OCIS_EVENTS_CLUSTER
STORAGE_USERS_EVENTS_CLUSTER
string ocis-cluster The clusterID of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture. Mandatory when using NATS as event system.
OCIS_INSECURE
STORAGE_USERS_EVENTS_TLS_INSECURE
bool false Whether to verify the server TLS certificates.
STORAGE_USERS_EVENTS_TLS_ROOT_CA_CERTIFICATE
STORAGE_USERS_EVENTS_TLS_ROOT_CA_CERT
string The root CA certificate used to validate the server's TLS certificate. If provided STORAGE_USERS_EVENTS_TLS_INSECURE will be seen as false.
OCIS_EVENTS_ENABLE_TLS
STORAGE_USERS_EVENTS_ENABLE_TLS
bool false Enable TLS for the connection to the events broker. The events broker is the ocis service which receives and delivers events between the services..
STORAGE_USERS_EVENTS_NUM_CONSUMERS int 0 The amount of concurrent event consumers to start. Event consumers are used for post-processing files. Multiple consumers increase parallelisation, but will also increase CPU and memory demands. The setting has no effect when the STORAGE_USERS_OCIS_ASYNC_UPLOADS is set to false. The default and minimum value is 1.
OCIS_CACHE_STORE
STORAGE_USERS_CACHE_STORE
STORAGE_USERS_CACHE_STORE_TYPE
string memory Store implementation for the cache. Supported values are 'memory' (default), 'redis', 'redis-sentinel', 'nats-js', and 'etcd'. See the text description for details.
OCIS_CACHE_STORE_NODES
STORAGE_USERS_CACHE_STORE_NODES
OCIS_CACHE_STORE_ADDRESS
STORAGE_USERS_CACHE_STORE_ADDRESS
STORAGE_USERS_CACHE_NODES
[]string [] A comma separated list of nodes to access the configured store. This has no effect when the 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store.
STORAGE_USERS_CACHE_DATABASE string users The database name the configured store should use.
STORAGE_USERS_MOUNT_ID string Mount ID of this storage.
STORAGE_USERS_EXPOSE_DATA_SERVER bool false Exposes the data server directly to users and bypasses the data gateway. Ensure that the data server address is reachable by users.
STORAGE_USERS_READ_ONLY bool false Set this storage to be read-only.
STORAGE_USERS_UPLOAD_EXPIRATION int64 86400 Duration in seconds after which uploads will expire.
OCIS_ADMIN_USER_ID
STORAGE_USERS_PURGE_TRASH_BIN_USER_ID
string ID of the user who collects all necessary information for deletion.
STORAGE_USERS_PURGE_TRASH_BIN_PERSONAL_DELETE_BEFORE Duration 720h0m0s Specifies the period of time in which items that have been in the personal trash-bin for longer than this value should be deleted. A value of 0 means no automatic deletion. The value is human-readable, valid values are '24h', '60m', '60s' etc.
STORAGE_USERS_PURGE_TRASH_BIN_PROJECT_DELETE_BEFORE Duration 720h0m0s Specifies the period of time in which items that have been in the project trash-bin for longer than this value should be deleted. A value of 0 means no automatic deletion. The value is human-readable, valid values are '24h', '60m', '60s' etc.