mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
15 lines
335 B
Go
15 lines
335 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// ServeCmd serve authelia with the provided configuration
|
|
func ServeCmd(cobraCmd *cobra.Command, args []string) {
|
|
cmd := CommandWithStdout(OutputDir+"/authelia", "-config", args[0])
|
|
cmd.Env = append(os.Environ(), "PUBLIC_DIR=dist/public_html")
|
|
RunCommandUntilCtrlC(cmd)
|
|
}
|