Implement experimental IIPServer support

This commit is contained in:
Tom Wiesing 2023-11-11 10:37:56 +01:00
parent 5d84301361
commit 10b93ddbe8
No known key found for this signature in database
9 changed files with 51 additions and 4 deletions

View file

@ -52,6 +52,14 @@ func (system System) GetDockerBaseImage() string {
return imagePrefix + version + imageSuffix
}
// GetIIPServerEnabled returns if the IIPServer was enabled
func (system System) GetIIPServerEnabled() string {
if !system.IIPServer {
return ""
}
return "1"
}
const (
// Content Security Policy used by the internal server
ContentSecurityPolicyNothing = "base-uri 'self'; default-src 'none';"