2021-12-04 02:25:09 +00:00
|
|
|
########################
|
|
|
|
# Server configuration #
|
|
|
|
########################
|
|
|
|
[Server]
|
|
|
|
# Set server log-level
|
|
|
|
# Must be one of: DEBUG, INFO, WARN, ERROR
|
|
|
|
# Default: INFO
|
|
|
|
LogLevel = "INFO"
|
|
|
|
|
2021-12-04 03:31:19 +00:00
|
|
|
# Server hostname
|
|
|
|
# Used for generating links
|
|
|
|
# Required
|
|
|
|
Hostname = "localhost"
|
|
|
|
|
2021-12-04 02:25:09 +00:00
|
|
|
# Storage configuration
|
|
|
|
[Server.Store]
|
|
|
|
# How server stores file
|
|
|
|
# Must be one of: filesystem, memory
|
|
|
|
# Required
|
|
|
|
Type = "filesystem"
|
|
|
|
|
|
|
|
[Server.Store.Filesystem]
|
|
|
|
# Where files are stored
|
|
|
|
# Required if store-type is filesystem
|
|
|
|
Dir = "/data"
|
|
|
|
|
|
|
|
# GRPC Configuration
|
|
|
|
[Server.GRPC]
|
|
|
|
# Address to listen to
|
|
|
|
# Default: :50051
|
|
|
|
ListenAddr = ":50051"
|
|
|
|
|
|
|
|
# GRPC Certificate Configuration
|
|
|
|
[Server.GRPC.CACerts]
|
|
|
|
# Path of PEM-encoded certificate file
|
|
|
|
CertificatePath = ""
|
|
|
|
# Path of PEM-encoded private key
|
|
|
|
# Must be of type ecdsa
|
|
|
|
CertificateKeyPath = ""
|
|
|
|
|
|
|
|
[Server.GRPC.Certs]
|
|
|
|
# Path of PEM-encoded certificate file
|
|
|
|
CertificatePath = ""
|
|
|
|
# Path of PEM-encoded private key
|
|
|
|
# Must be of type ecdsa
|
|
|
|
CertificateKeyPath = ""
|
|
|
|
|
|
|
|
[Server.HTTP]
|
|
|
|
# Address to listen to
|
|
|
|
# Default: :8089
|
|
|
|
ListenAddr = ":8089"
|
|
|
|
|
|
|
|
|
|
|
|
########################
|
|
|
|
# Client configuration #
|
|
|
|
########################
|
|
|
|
[Client]
|
|
|
|
# Server used if not specified using command-line
|
|
|
|
DefaultServer = "localhost:50051"
|
|
|
|
# Path to PEM-encoder server-certificate
|
|
|
|
ServerCertPath = ""
|
|
|
|
|
|
|
|
[Client.Certs]
|
|
|
|
# Path of PEM-encoded certificate file
|
|
|
|
CertificatePath = ""
|
|
|
|
# Path of PEM-encoded private key
|
|
|
|
# Must be of type ecdsa
|
|
|
|
CertificateKeyPath = ""
|