You can configure the SharingHub server through multiple sources:
- YAML file
- Environment variables
Note: Environment variables always overwrite YAML values if they are set.
The YAML file path can be changed to point to another one with the environment variable CONFIG_PATH.
Content:
- Variables
Note: relative paths are resolved against current working dir
- Type: path
- Default:
"<APP_DIR>/config.yaml" - Environment variable:
- Name:
CONFIG_PATH - Example value:
/path/to/file.yaml
- Name:
- Type: boolean
- Default:
False - Environment variable:
- Name:
DEBUG - Values:
true,false
- Name:
- YAML:
-
Path:
server.debug -
Example value:
server: debug: true
-
- Type: string
- Default:
"INFO","DEBUG"if debug is true. - Environment variable:
- Name:
LOG_LEVEL - Values:
CRITICAL,WARNING,INFO,DEBUG
- Name:
- YAML:
-
Path:
server.log-level -
Example value:
server: log-level: WARNING
-
- Type: string
- Default:
"" - Environment variable:
- Name:
API_PREFIX - Example value:
/my/prefix
- Name:
- YAML:
-
Path:
server.prefix -
Example value:
server: prefix: /my/prefix
-
- Type: list of string
- Default:
["http://localhost:8000", "https://radiantearth.github.io"] - Environment variable:
- Name:
ALLOWED_ORIGINS - Example value:
http://localhost:7000 http://localhost:8000 http://localhost:9000
- Name:
- YAML:
-
Path:
server.allowed-origins -
Example value:
server: allowed-origins: - http://localhost:7000 - http://localhost:8000 - http://localhost:9000
-
- Type: string
- Default: random uuid
- Environment variable:
- Name:
SESSION_SECRET_KEY - Example value:
<secret key>
- Name:
- YAML:
-
Path:
server.session.secret-key -
Example value:
server: session: secret-key: <secret key>
-
- Type: string
- Default:
"sharinghub-session" - Environment variable:
- Name:
SESSION_COOKIE - Example value:
"session"
- Name:
- YAML:
-
Path:
server.session.cookie -
Example value:
server: session: cookie: "session"
-
- Type: string
- Default:
None - Environment variable:
- Name:
SESSION_DOMAIN - Example value:
"test.local"
- Name:
- YAML:
-
Path:
server.session.domain -
Example value:
server: session: domain: "test.local"
-
- Type: floating number
- Default:
3600.0 - Environment variable:
- Name:
SESSION_MAX_AGE - Example value:
7200.0
- Name:
- YAML:
-
Path:
server.session.max-age -
Example value:
server: session: max-age: 7200.0
-
- Type: path
- Environment variable:
- Name:
STATIC_FILES_PATH - Example value:
/statics
- Name:
- YAML:
-
Path:
server.statics -
Example value:
server: statics: /statics
-
- Type: string
- Default:
ui - Environment variable:
- Name:
STATIC_UI_DIRNAME - Example value:
web-ui
- Name:
- YAML:
-
Path:
server.statics-ui -
Example value:
server: statics-ui: web-ui
-
- Type: floating number
- Default:
300.0 - Environment variable:
- Name:
HTTP_CLIENT_TIMEOUT - Example value:
600.0
- Name:
- YAML:
-
Path:
server.http_client.timeout -
Example value:
server: http_client: timeout: 600.0
-
- Type: boolean
- Default:
not DEBUG - Environment variable:
- Name:
ENABLE_CACHE - Values:
true,false
- Name:
- YAML:
-
Path:
server.cache -
Example value:
server: cache: true
-
- Type: floating number
- Default:
300.0 - Environment variable:
- Name:
CHECKER_CACHE_TIMEOUT - Example value:
15.0
- Name:
- YAML:
-
Path:
checker.cache-timeout -
Example value:
checker: cache-timeout: 15.0
-
- Type: mapping
- Default: read from config file
- YAML:
-
Path:
services -
Example value:
services: custom-service: url: https://sharinghub.example.com/custom/service
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
GITLAB_URL - Example value:
https://gitlab.example.com
- Name:
- YAML:
-
Path:
gitlab.url -
Example value:
gitlab: url: https://gitlab.example.com
-
- Type: boolean
- Default:
False - Environment variable:
- Name:
GITLAB_ALLOW_PUBLIC - Values:
true,false
- Name:
- YAML:
-
Path:
gitlab.allow-public -
Example value:
gitlab: allow-public: true
-
- Type: string
- Default: read from env var
- Environment variable:
- Name:
GITLAB_OAUTH_CLIENT_ID - Example value:
<client-id>
- Name:
- YAML:
-
Path:
gitlab.oauth.client-id -
Example value:
gitlab: oauth: client-id: <client-id>
-
- Type: string
- Default: read from env var
- Environment variable:
- Name:
GITLAB_OAUTH_CLIENT_SECRET - Example value:
<client-secret>
- Name:
- YAML:
-
Path:
gitlab.oauth.client-secret -
Example value:
gitlab: oauth: client-secret: <client-secret>
-
- Type: string
- Default: read from env var
- Environment variable:
- Name:
GITLAB_OAUTH_DEFAULT_TOKEN - Example value:
<default-token>
- Name:
- YAML:
-
Path:
gitlab.oauth.default-token -
Example value:
gitlab: oauth: default-token: <default-token>
-
- Type: list of string
- Default:
[] - Environment variable:
- Name:
GITLAB_IGNORE_TOPICS - Example value:
gitlab-ci devops
- Name:
- YAML:
-
Path:
gitlab.ignore.topics -
Example value:
gitlab: ignore: topics: - "gitlab-ci" - "devops"
-
- Type:
"http" | "s3 | None" - Default:
None - Environment variable:
- Name:
STORE_MODE - Example value:
http
- Name:
- YAML:
-
Path:
services.store.mode -
Example value:
services: store: url: https://sharinghub.example.com/api/store mode: http
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
S3_BUCKET - Example value:
gitlab
- Name:
- YAML:
-
Path:
s3.bucket -
Example value:
s3: bucket: gitlab
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
S3_ACCESS_KEY - Example value:
<access-key>
- Name:
- YAML:
-
Path:
s3.access-key -
Example value:
s3: access-key: <access-key>
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
S3_SECRET_KEY - Example value:
<secret-key>
- Name:
- YAML:
-
Path:
s3.secret-key -
Example value:
s3: secret-key: <secret-key>
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
S3_REGION_NAME - Example value:
test
- Name:
- YAML:
-
Path:
s3.region -
Example value:
s3: region: test
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
S3_ENDPOINT_URL - Example value:
http://127.0.0.1:9000
- Name:
- YAML:
-
Path:
s3.endpoint -
Example value:
s3: endpoint: "http://127.0.0.1:9000"
-
- Type: integer number
- Default:
3600 - Environment variable:
- Name:
S3_PRESIGNED_EXPIRATION - Example value:
1200
- Name:
- YAML:
-
Path:
s3.presigned-expiration -
Example value:
s3: presigned-expiration: 1200
-
- Type: integer number
- Default:
6000000 - Environment variable:
- Name:
S3_UPLOAD_CHUNK_SIZE - Example value:
300000
- Name:
- YAML:
-
Path:
s3.upload-chunk-size -
Example value:
s3: upload-chunk-size: 300000
-
- Type: floating number
- Default:
300.0 - Environment variable:
- Name:
S3_CHECK_ACCESS_CACHE_TIMEOUT - Example value:
15.0
- Name:
- YAML:
-
Path:
s3.check-access.cache-timeout -
Example value:
s3: check-access: cache-timeout: 15.0
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
JUPYTERLAB_URL - Example value:
https://nb.example.com
- Name:
- YAML:
-
Path:
jupyterlab.url -
Example value:
jupyterlab: url: https://nb.example.com
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
WIZARD_URL - Example value:
https://example.com/wizard
- Name:
- YAML:
-
Path:
wizard.url -
Example value:
wizard: url: https://example.com/wizard
-
- Type: string (possible values: "mlflow", "mlflow-sharinghub", "gitlab")
- Default: read from config file
- Environment variable:
- Name:
MLFLOW_TYPE - Example value:
mlflow-sharinghub
- Name:
- YAML:
-
Path:
mlflow.type -
Example value:
mlflow: type: gitlab
-
- Type: string
- Default: read from config file
- Environment variable:
- Name:
MLFLOW_URL - Example value:
https://sharinghub.example.com/mlflow
- Name:
- YAML:
-
Path:
mlflow.url -
Example value:
mlflow: url: https://sharinghub.example.com/mlflow
-
-
Type: mapping
-
Default: read from config file
- YAML:
- Path:
spaces
- Path:
- YAML:
-
Example value:
spaces: streamlit: url: "https://example.example.com/deploy/" assets: - streamlit_app.py - file.example
- Type: string
- Default: read from config file
- Environment variable:
- Name:
DOCS_URL - Example value:
https://sharingub.instance/docs
- Name:
- YAML:
-
Path:
docs.url -
Example value:
docs: url:https://sharinghub.example.com/docs
-
- Type: mapping
- Default: read from config file
- YAML:
-
Path:
stac.root -
Example value:
stac: root: id: my-gitlab-catalog title: My GitLab Catalog description: My description logo: URL
-
- Type: mapping
- Default: read from config file
- YAML:
-
Path:
stac.categories -
Example value:
stac: categories: - my-category: title: My Category description: Custom category default_type: item
-
- Type: mapping
- Default: read from config file
- YAML:
-
Path:
stac.categories.[entry].features -
Example value:
stac: categories: - my-category: features: deployment-spaces: enable #to enable spaces deployment link for item of this category jupyter: disable #to enable jupyter link for item of this category map-viewer: enable #to enable map-viewer for item of this category store-s3: enable #to enable dvc for item of this category mlflow: enable #to enable mlflow for item of this category
-
- Type: floating number
- Default:
300.0 - Environment variable:
- Name:
STAC_PROJECTS_CACHE_TIMEOUT - Example value:
15.0
- Name:
- YAML:
-
Path:
stac.projects.cache-timeout -
Example value:
stac: projects: cache-timeout: 15.0
-
- Type: list of string
- Default:
["*.tif", "*.tiff", "*.geojson"] - Environment variable:
- Name:
STAC_PROJECTS_ASSETS_RULES - Example value:
*.tif *.tiff
- Name:
- YAML:
-
Path:
stac.categories.[0].assets -
Example value:
stac: categories: dashboard: assets: - "*.tiff" - "*.py"
-
- Type: string
- Default:
"zip" - Environment variable:
- Name:
STAC_PROJECTS_ASSETS_RELEASE_SOURCE_FORMAT - Example value:
tar.gz
- Name:
- YAML:
-
Path:
stac.projects.assets.release-source-format -
Example value:
stac: projects: assets: release-source-format: tar.gz
-
- Type: integer number
- Default:
12 - Environment variable:
- Name:
STAC_SEARCH_PAGE_DEFAULT_SIZE - Example value:
20
- Name:
- YAML:
-
Path:
stac.search.page-size -
Example value:
stac: search: page-size: 20
-
- Type: mapping
- Default: read from config file
- YAML:
-
Path:
external-urls -
Example value:
external-urls: - name: Link url : <url> footer: <bool> icon: <icon> # not required locales: fr: name: French Localization - name: Links with dropdown icon: <icon> footer: <bool> locales: fr: name: French Localization dropdown: - name : Link Children url: <url> icon: <icon> locales: fr: name: <localization>
-
- Type: mapping
- Default: read from config file
- YAML:
-
Path:
alerts -
Example value:
alerts: timeout: 3 # days unit type: info # color of alert | possibility (info, danger, success, warning,primary, dark, secondary) title: "Welcome to new SharingHub" message: "To see all projects and unlock all features, please login.." # Possible to render primitives html component in message ex: <a href='url'> text here <a/> locales: fr: title: "Bienvenue sur le nouveau sharing hub" message: "Pour voir tous les projets et débloquer toutes les fonctionnalités, veuillez vous connecter..." # Possible to render primitives html component in message ex: <a href='url'> text here <a/>
-
- Type: mapping
- Default: read from config file
- YAML:
-
Path:
tags -
Example value:
tags: gitlab: minimum_count: 1 sections: - name: "Computer Vision" enabled_for: - ai-model - dataset - processor - challenge keywords: - "Image qualification" - "Object detection" - "Image segmentation" - "Mask generation"
-