mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
74721a9f41
* feat: go:embed static assets Go 1.16 introduced the ability to embed files within a generated binary directly with the go tool chain. This simplifies our dependencies and the significantly improves the development workflow for future developers. Key points to note: Due to the inability to embed files that do not reside within the local package we need to duplicate our `config.template.yml` within `internal/configuration`. To avoid issues with the development workflow empty mock files have been included within `internal/server/public_html`. These are substituted with the respective generated files during the CI/CD and build workflows. * fix(suites): increase ldap suite test timeout * fix(server): fix swagger asset CSP
9 lines
180 B
Go
9 lines
180 B
Go
package server
|
|
|
|
const embeddedAssets = "public_html/"
|
|
const swaggerAssets = embeddedAssets + "api/"
|
|
const apiFile = "openapi.yml"
|
|
const indexFile = "index.html"
|
|
|
|
const dev = "dev"
|