ownCloud
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage
Edit page

Service Configuration

Example YAML Config

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Autogenerated
# Filename: thumbnails-config-example.yaml

tracing:
  enabled: false
  type: ""
  endpoint: ""
  collector: ""
log:
  level: ""
  pretty: false
  color: false
  file: ""
debug:
  addr: 127.0.0.1:9189
  token: ""
  pprof: false
  zpages: false
grpc:
  addr: 127.0.0.1:9185
http:
  addr: 127.0.0.1:9186
  root: /thumbnails
thumbnail:
  resolutions:
  - 16x16
  - 32x32
  - 64x64
  - 128x128
  - 1920x1080
  - 3840x2160
  - 7680x4320
  filesystem_storage:
    root_directory: ~/.ocis/thumbnails
  webdav_allow_insecure: false
  cs3_allow_insecure: false
  reva_gateway: 127.0.0.1:9142
  font_map_file: ""
  transfer_secret: ""
  data_endpoint: http://127.0.0.1:9186/thumbnails/data

Environment Variables

Name Type Default Value Description
OCIS_TRACING_ENABLED
THUMBNAILS_TRACING_ENABLED
bool false Enable tracing.
OCIS_TRACING_TYPE
THUMBNAILS_TRACING_TYPE
string The tracing type.
OCIS_TRACING_ENDPOINT
THUMBNAILS_TRACING_ENDPOINT
string The endpoint of the tracing service.
OCIS_TRACING_COLLECTOR
THUMBNAILS_TRACING_COLLECTOR
string The tracing collector.
OCIS_LOG_LEVEL
THUMBNAILS_LOG_LEVEL
string The log level.
OCIS_LOG_PRETTY
THUMBNAILS_LOG_PRETTY
bool false Enable pretty logs.
OCIS_LOG_COLOR
THUMBNAILS_LOG_COLOR
bool false Enable colored logs.
OCIS_LOG_FILE
THUMBNAILS_LOG_FILE
string The path to the log file when logging to file.
THUMBNAILS_DEBUG_ADDR string 127.0.0.1:9189 Bind address of the debug server, where metrics, health, config and debug endpoints will be exposed.
THUMBNAILS_DEBUG_TOKEN string Token to secure the metrics endpoint
THUMBNAILS_DEBUG_PPROF bool false Enables pprof, which can be used for profiling
THUMBNAILS_DEBUG_ZPAGES bool false Enables zpages, which can be used for collecting and viewing traces in-me
THUMBNAILS_GRPC_ADDR string 127.0.0.1:9185 The address off the grpc service.
THUMBNAILS_HTTP_ADDR string 127.0.0.1:9186 The address of the HTTP service.
THUMBNAILS_HTTP_ROOT string /thumbnails The root path of the HTTP service.
THUMBNAILS_RESOLUTIONS [16x16 32x32 64x64 128x128 1920x1080 3840x2160 7680x4320] The supported target resolutions in the format WidthxHeight e.g. 32x32. You can provide multiple resolutions seperated by a comma.
THUMBNAILS_FILESYSTEMSTORAGE_ROOT string ~/.ocis/thumbnails The directory where the filesystem storage will store the thumbnails.
OCIS_INSECURE
THUMBNAILS_WEBDAVSOURCE_INSECURE
bool false Ignore untrusted SSL certificates when connecting to the webdav source.
OCIS_INSECURE
THUMBNAILS_CS3SOURCE_INSECURE
bool false Ignore untrusted SSL certificates when connecting to the CS3 source.
REVA_GATEWAY string 127.0.0.1:9142 The CS3 gateway endpoint
THUMBNAILS_TXT_FONTMAP_FILE string The path to a font file for txt thumbnails.
THUMBNAILS_TRANSFER_TOKEN string The secret to sign JWT to download the actual thumbnail file.
THUMBNAILS_DATA_ENDPOINT string http://127.0.0.1:9186/thumbnails/data The HTTP endpoint where the actual thumbnail file can be downloaded.