mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
0be883befb
* feat: customizable static assets This change provides the means to override specific assets from the embedded Go FS with files situated on disk. We only allow overriding the following files currently: * favicon.ico * logo.png * refactor(server): make logo string a const * refactor(suites): override favicon and use ntp3 in traefik2 suite * test(suites): test logo override in traefik2 suite * test(suites): test asset override fallback in traefik suite Closes #1630.
22 lines
492 B
Go
22 lines
492 B
Go
package server
|
|
|
|
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"}
|
|
|
|
const dev = "dev"
|
|
|
|
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
|
|
`
|