2020-11-19 08:50:34 +07:00
|
|
|
package server
|
|
|
|
|
2021-11-15 15:37:58 +07:00
|
|
|
const (
|
|
|
|
embeddedAssets = "public_html/"
|
|
|
|
swaggerAssets = embeddedAssets + "api/"
|
|
|
|
apiFile = "openapi.yml"
|
|
|
|
indexFile = "index.html"
|
|
|
|
logoFile = "logo.png"
|
|
|
|
)
|
|
|
|
|
|
|
|
var rootFiles = []string{"favicon.ico", "manifest.json", "robots.txt"}
|
2021-01-03 11:28:46 +07:00
|
|
|
|
2021-12-01 10:32:58 +07:00
|
|
|
const (
|
|
|
|
dev = "dev"
|
|
|
|
f = "false"
|
|
|
|
t = "true"
|
|
|
|
)
|
2021-08-05 11:02:07 +07:00
|
|
|
|
|
|
|
const healthCheckEnv = `# Written by Authelia Process
|
|
|
|
X_AUTHELIA_HEALTHCHECK=1
|
|
|
|
X_AUTHELIA_HEALTHCHECK_SCHEME=%s
|
|
|
|
X_AUTHELIA_HEALTHCHECK_HOST=%s
|
|
|
|
X_AUTHELIA_HEALTHCHECK_PORT=%d
|
|
|
|
X_AUTHELIA_HEALTHCHECK_PATH=%s
|
|
|
|
`
|
2022-02-21 06:14:09 +07:00
|
|
|
|
|
|
|
const (
|
|
|
|
cspDefaultTemplate = "default-src 'self'; object-src 'none'; style-src 'self' 'nonce-%s'"
|
|
|
|
cspDefaultDevTemplate = "default-src 'self' 'unsafe-eval'; object-src 'none'; style-src 'self' 'nonce-%s'"
|
|
|
|
cspNoncePlaceholder = "${NONCE}"
|
|
|
|
)
|