mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
f8bd506326
* [FEATURE] Embed static assets in Go binary * Refactor/consolidate code and specify public_html via configuration * Update docs and config template for assets * Update AUR package pre-requisites and systemd unit * Include static assets as Buildkite and GitHub artifacts * Remove references to PUBLIC_DIR * Only serve assets via embedded filesystem and remove configuration references * Update authelia-scripts helper to build the embedded filesystem * Mock the embedded filesystem for unit tests Add to gitignore to ensure this isn't overwritten. * Move go:generate to satisfy linter
16 lines
418 B
Go
16 lines
418 B
Go
package main
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/authelia/authelia/internal/utils"
|
|
)
|
|
|
|
// ServeCmd serve authelia with the provided configuration
|
|
func ServeCmd(cobraCmd *cobra.Command, args []string) {
|
|
log.Infof("Running Authelia with config %s...", args[0])
|
|
cmd := utils.CommandWithStdout(OutputDir+"/authelia", "--config", args[0])
|
|
utils.RunCommandUntilCtrlC(cmd)
|
|
}
|