mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-16 21:37:29 -06:00
further fun
This commit is contained in:
parent
54c4b8de20
commit
18d0685ef1
9 changed files with 77 additions and 50 deletions
|
|
@ -21,7 +21,7 @@ package main
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/gotosocial/gotosocial/cmd/server"
|
||||
"github.com/gotosocial/gotosocial/internal/server"
|
||||
"github.com/gotosocial/gotosocial/internal/consts"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
|
|
@ -32,6 +32,7 @@ func main() {
|
|||
flagNames := consts.GetFlagNames()
|
||||
envNames := consts.GetEnvNames()
|
||||
app := &cli.App{
|
||||
Usage: "a fediverse social media server",
|
||||
Flags: []cli.Flag{
|
||||
// GENERAL FLAGS
|
||||
&cli.StringFlag{
|
||||
|
|
@ -47,6 +48,12 @@ func main() {
|
|||
EnvVars: []string{envNames.ApplicationName},
|
||||
Hidden: true,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: flagNames.ConfigPath,
|
||||
Usage: "Path to a yaml file containing gotosocial configuration. Values set in this file will be overwritten by values set as env vars or arguments",
|
||||
Value: "",
|
||||
EnvVars: []string{envNames.ConfigPath},
|
||||
},
|
||||
|
||||
// DATABASE FLAGS
|
||||
&cli.StringFlag{
|
||||
|
|
@ -76,9 +83,7 @@ func main() {
|
|||
&cli.StringFlag{
|
||||
Name: flagNames.DbPassword,
|
||||
Usage: "Database password",
|
||||
Value: "postgres",
|
||||
EnvVars: []string{envNames.DbPassword},
|
||||
FilePath: "./dbpass",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: flagNames.DbDatabase,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue