diff options
author | 2022-11-25 18:23:42 +0100 | |
---|---|---|
committer | 2022-11-25 17:23:42 +0000 | |
commit | 13e9abd02a1f4003c7be922a22e8f1d095a55d61 (patch) | |
tree | ccc7b7bbb0d040dc1db84d581849a0e443f91698 /internal/config/config.go | |
parent | [bugfix] Change emailVerified to true for admin account create (#1140) (diff) | |
download | gotosocial-13e9abd02a1f4003c7be922a22e8f1d095a55d61.tar.xz |
[feature] Add `admin media prune orphaned` CLI command (#1146)
* add FilePath regex
* add `admin media prune orphaned` command
* add prune orphaned function to media manager
* don't mark flag as required
* document admin media prune orphaned cmd
* oh envparsing.sh you coy minx
Diffstat (limited to 'internal/config/config.go')
-rw-r--r-- | internal/config/config.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index ecbd079e6..cc37e9bfd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -125,14 +125,15 @@ type Configuration struct { SyslogProtocol string `name:"syslog-protocol" usage:"Protocol to use when directing logs to syslog. Leave empty to connect to local syslog."` SyslogAddress string `name:"syslog-address" usage:"Address:port to send syslog logs to. Leave empty to connect to local syslog."` - // TODO: move these elsewhere, these are more ephemeral vs long-running flags like above - AdminAccountUsername string `name:"username" usage:"the username to create/delete/etc"` - AdminAccountEmail string `name:"email" usage:"the email address of this account"` - AdminAccountPassword string `name:"password" usage:"the password to set for this account"` - AdminTransPath string `name:"path" usage:"the path of the file to import from/export to"` - AdvancedCookiesSamesite string `name:"advanced-cookies-samesite" usage:"'strict' or 'lax', see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite"` AdvancedRateLimitRequests int `name:"advanced-rate-limit-requests" usage:"Amount of HTTP requests to permit within a 5 minute window. 0 or less turns rate limiting off."` + + // TODO: move these elsewhere, these are more ephemeral vs long-running flags like above + AdminAccountUsername string `name:"username" usage:"the username to create/delete/etc"` + AdminAccountEmail string `name:"email" usage:"the email address of this account"` + AdminAccountPassword string `name:"password" usage:"the password to set for this account"` + AdminTransPath string `name:"path" usage:"the path of the file to import from/export to"` + AdminMediaPruneDryRun bool `name:"dry-run" usage:"perform a dry run and only log number of items eligible for pruning"` } // MarshalMap will marshal current Configuration into a map structure (useful for JSON). |