aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.h
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2023-02-16 13:58:49 +0100
committerGitHub <[email protected]>2023-02-16 13:58:49 +0100
commitf30de2640d99451a85ff2820fdd0b0b5816d2e61 (patch)
tree70bacc76c1eb8738e72387dfdf131230744e7ac8 /zenserver/config.h
parentchangelog (diff)
downloadzen-f30de2640d99451a85ff2820fdd0b0b5816d2e61.tar.xz
zen-f30de2640d99451a85ff2820fdd0b0b5816d2e61.zip
Experimental ObjectStore/CDN like endpoint
Diffstat (limited to 'zenserver/config.h')
-rw-r--r--zenserver/config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/zenserver/config.h b/zenserver/config.h
index 096a800b4..8a5c6de4e 100644
--- a/zenserver/config.h
+++ b/zenserver/config.h
@@ -107,11 +107,23 @@ struct ZenAuthConfig
std::vector<ZenOpenIdProviderConfig> OpenIdProviders;
};
+struct ZenObjectStoreConfig
+{
+ struct BucketConfig
+ {
+ std::string Name;
+ std::filesystem::path Directory;
+ };
+
+ std::vector<BucketConfig> Buckets;
+};
+
struct ZenServerOptions
{
ZenUpstreamCacheConfig UpstreamCacheConfig;
ZenGcConfig GcConfig;
ZenAuthConfig AuthConfig;
+ ZenObjectStoreConfig ObjectStoreConfig;
std::filesystem::path DataDir; // Root directory for state (used for testing)
std::filesystem::path ContentDir; // Root directory for serving frontend content (experimental)
std::filesystem::path AbsLogFile; // Absolute path to main log file
@@ -136,6 +148,7 @@ struct ZenServerOptions
bool ShouldCrash = false; // Option for testing crash handling
bool IsFirstRun = false;
bool NoSentry = false;
+ bool ObjectStoreEnabled = false;
#if ZEN_WITH_TRACE
std::string TraceHost; // Host name or IP address to send trace data to
std::string TraceFile; // Path of a file to write a trace