Config: Add options for HTTP cache control #3297

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-03-20 11:40:46 +01:00
parent ff3f9b8537
commit 286f06d894
13 changed files with 124 additions and 33 deletions

View File

@@ -60,6 +60,8 @@ func startAction(ctx *cli.Context) error {
{"detach-server", fmt.Sprintf("%t", conf.DetachServer())},
{"http-mode", conf.HttpMode()},
{"http-compression", conf.HttpCompression()},
{"http-cache-ttl", fmt.Sprintf("%d", conf.HttpCacheTTL())},
{"http-cache-public", fmt.Sprintf("%t", conf.HttpCachePublic())},
{"http-host", conf.HttpHost()},
{"http-port", fmt.Sprintf("%d", conf.HttpPort())},
}