authelia/cmd/authelia-scripts
Amir Zarrinkafsh 74721a9f41
feat: go:embed static assets (#1733)
* 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
2021-02-22 10:07:06 +11:00
..
authelia-scripts do not hardcode /bin/bash (#1122) 2020-06-18 09:49:13 +02:00
cmd_bootstrap.go [MISC] Consistently utilise correct logging interface (#1487) 2020-11-25 09:54:36 +11:00
cmd_build.go feat: go:embed static assets (#1733) 2021-02-22 10:07:06 +11:00
cmd_ci.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
cmd_clean.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
cmd_docker.go [CI] Update QEMU to v5.2.0-2 (#1582) 2021-01-05 12:54:37 +11:00
cmd_serve.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
cmd_suites.go [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
cmd_unittest.go [CI] Add Codecov support (#1065) 2020-06-05 10:43:19 +10:00
const.go feat: go:embed static assets (#1733) 2021-02-22 10:07:06 +11:00
docker.go [CI] Fix DockerHub README update (#1628) 2021-01-25 10:05:28 +11:00
main.go [CI] Update QEMU to v5.2.0-1 (#1567) 2020-12-30 07:23:24 +11:00