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
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_LOGLEVEL
|
2021-12-04 02:25:09 +00:00
|
|
|
LogLevel = "INFO"
|
|
|
|
|
2021-12-04 03:31:19 +00:00
|
|
|
# Server hostname
|
|
|
|
# Used for generating links
|
|
|
|
# Required
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_HOSTNAME
|
2021-12-04 03:31:19 +00:00
|
|
|
Hostname = "localhost"
|
|
|
|
|
2021-12-06 05:08:17 +00:00
|
|
|
# Endpoint reachable by clients
|
|
|
|
# Fetched by clients for automatic setup
|
|
|
|
# Required
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_GRPCENDPOINT
|
2021-12-06 05:08:17 +00:00
|
|
|
GRPCEndpoint = "localhost:50051"
|
|
|
|
|
|
|
|
# File store configuration
|
|
|
|
[Server.FileStore]
|
2021-12-04 02:25:09 +00:00
|
|
|
# How server stores file
|
2021-12-04 08:58:16 +00:00
|
|
|
# Must be one of: filesystem, memory, bolt
|
2021-12-04 02:25:09 +00:00
|
|
|
# Required
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_FILESTORE_TYPE
|
2021-12-06 05:08:17 +00:00
|
|
|
Type = "bolt"
|
2021-12-04 02:25:09 +00:00
|
|
|
|
2021-12-06 05:08:17 +00:00
|
|
|
[Server.FileStore.Bolt]
|
2021-12-04 08:58:16 +00:00
|
|
|
# Where the bolt-db is stored
|
|
|
|
# Required if store-type is bolt
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_FILESTORE_BOLT_PATH
|
2021-12-06 05:08:17 +00:00
|
|
|
Path = "/data/files.db"
|
2021-12-04 08:58:16 +00:00
|
|
|
|
2021-12-06 05:08:17 +00:00
|
|
|
[Server.FileStore.Filesystem]
|
2021-12-04 02:25:09 +00:00
|
|
|
# Where files are stored
|
|
|
|
# Required if store-type is filesystem
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_FILESTORE_FILESYSTEM_DIR
|
2021-12-04 02:25:09 +00:00
|
|
|
Dir = "/data"
|
|
|
|
|
2021-12-08 08:42:12 +00:00
|
|
|
[Server.DataStore]
|
|
|
|
# What store to use for users, certs and binaries
|
2021-12-06 05:08:17 +00:00
|
|
|
# Must be one of: memory, bolt
|
|
|
|
# Required
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_DATASTORE_TYPE
|
2021-12-06 05:08:17 +00:00
|
|
|
Type = "bolt"
|
|
|
|
|
2021-12-08 08:42:12 +00:00
|
|
|
[Server.DataStore.Bolt]
|
2021-12-06 05:08:17 +00:00
|
|
|
# Path to bolt database-file
|
2021-12-08 08:42:12 +00:00
|
|
|
# Required if Server.Datastore is bolt
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_DATASTORE_BOLT_PATH
|
2021-12-06 05:08:17 +00:00
|
|
|
Path = "/data/users.db"
|
|
|
|
|
2021-12-04 02:25:09 +00:00
|
|
|
# GRPC Configuration
|
|
|
|
[Server.GRPC]
|
|
|
|
# Address to listen to
|
|
|
|
# Default: :50051
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_GRPC_LISTENADDR
|
2021-12-04 02:25:09 +00:00
|
|
|
ListenAddr = ":50051"
|
|
|
|
|
|
|
|
# GRPC Certificate Configuration
|
|
|
|
[Server.GRPC.CACerts]
|
|
|
|
# Path of PEM-encoded certificate file
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_GRPC_CACERTS_CERTIFICATEPATH
|
2021-12-04 02:25:09 +00:00
|
|
|
CertificatePath = ""
|
|
|
|
# Path of PEM-encoded private key
|
|
|
|
# Must be of type ecdsa
|
|
|
|
CertificateKeyPath = ""
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_GRPC_CACERTS_CERTIFICATEKEYPATH
|
2021-12-04 02:25:09 +00:00
|
|
|
|
|
|
|
[Server.GRPC.Certs]
|
|
|
|
# Path of PEM-encoded certificate file
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_GRPC_CERTS_CERTIFICATEPATH
|
2021-12-04 02:25:09 +00:00
|
|
|
CertificatePath = ""
|
|
|
|
# Path of PEM-encoded private key
|
|
|
|
# Must be of type ecdsa
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_GRPC_CERTS_CERTIFICATEKEYPATH
|
2021-12-04 02:25:09 +00:00
|
|
|
CertificateKeyPath = ""
|
|
|
|
|
|
|
|
[Server.HTTP]
|
|
|
|
# Address to listen to
|
|
|
|
# Default: :8089
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_SERVER_HTTP_LISTENADDR
|
2021-12-04 02:25:09 +00:00
|
|
|
ListenAddr = ":8089"
|
|
|
|
|
|
|
|
|
|
|
|
########################
|
|
|
|
# Client configuration #
|
|
|
|
########################
|
|
|
|
[Client]
|
|
|
|
# Server used if not specified using command-line
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_CLIENT_DEFAULTSERVER
|
2021-12-04 02:25:09 +00:00
|
|
|
DefaultServer = "localhost:50051"
|
|
|
|
# Path to PEM-encoder server-certificate
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_CLIENT_SERVERCERTPATH
|
2021-12-04 02:25:09 +00:00
|
|
|
ServerCertPath = ""
|
|
|
|
|
|
|
|
[Client.Certs]
|
|
|
|
# Path of PEM-encoded certificate file
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_CLIENT_CERTS_CERTIFICATEPATH
|
2021-12-04 02:25:09 +00:00
|
|
|
CertificatePath = ""
|
|
|
|
# Path of PEM-encoded private key
|
|
|
|
# Must be of type ecdsa
|
2021-12-08 10:43:41 +00:00
|
|
|
# ENV: EZSHARE_CLIENT_CERTS_CERTIFICATEKEYPATH
|
2021-12-04 02:25:09 +00:00
|
|
|
CertificateKeyPath = ""
|