89 lines
1.8 KiB
TOML
89 lines
1.8 KiB
TOML
########################
|
|
# Server configuration #
|
|
########################
|
|
[Server]
|
|
# Set server log-level
|
|
# Must be one of: DEBUG, INFO, WARN, ERROR
|
|
# Default: INFO
|
|
LogLevel = "INFO"
|
|
|
|
# Server hostname
|
|
# Used for generating links
|
|
# Required
|
|
Hostname = "localhost"
|
|
|
|
# Endpoint reachable by clients
|
|
# Fetched by clients for automatic setup
|
|
# Required
|
|
GRPCEndpoint = "localhost:50051"
|
|
|
|
# File store configuration
|
|
[Server.FileStore]
|
|
# How server stores file
|
|
# Must be one of: filesystem, memory, bolt
|
|
# Required
|
|
Type = "bolt"
|
|
|
|
[Server.FileStore.Bolt]
|
|
# Where the bolt-db is stored
|
|
# Required if store-type is bolt
|
|
Path = "/data/files.db"
|
|
|
|
[Server.FileStore.Filesystem]
|
|
# Where files are stored
|
|
# Required if store-type is filesystem
|
|
Dir = "/data"
|
|
|
|
[Server.UserStore]
|
|
# What store to use for users
|
|
# Must be one of: memory, bolt
|
|
# Required
|
|
Type = "bolt"
|
|
|
|
[Server.UserStore.Bolt]
|
|
# Path to bolt database-file
|
|
Path = "/data/users.db"
|
|
|
|
# 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 = ""
|