diff options
| author | 2021-06-21 19:46:10 +0200 | |
|---|---|---|
| committer | 2021-06-21 19:46:10 +0200 | |
| commit | f9bc305acaaf26bf3c5ef4ae49f7b5a20c9c1dfe (patch) | |
| tree | c7312570819f998a51ad79e950baf523ae6426f8 /cmd | |
| parent | Deletes+unboosts (#52) (diff) | |
| download | gotosocial-f9bc305acaaf26bf3c5ef4ae49f7b5a20c9c1dfe.tar.xz | |
new styling for frontpage, update login and authorize templates (#46)
* new styling for frontpage, update login and authorize templates
* run go fmt
* add AssetBaseDir to command flag parsing
* untested: move landing page to it's own router
* go fmt, fix typo
* fix package, adapt to proper Route structure
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gotosocial/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/gotosocial/main.go b/cmd/gotosocial/main.go index 70152dc23..27810a80b 100644 --- a/cmd/gotosocial/main.go +++ b/cmd/gotosocial/main.go @@ -118,6 +118,12 @@ func main() { Value: defaults.TemplateBaseDir, EnvVars: []string{envNames.TemplateBaseDir}, }, + &cli.StringFlag{ + Name: flagNames.AssetBaseDir, + Usage: "Directory to serve static assets from, accessible at example.com/assets/", + Value: defaults.AssetBaseDir, + EnvVars: []string{envNames.AssetBaseDir}, + }, // ACCOUNTS FLAGS &cli.BoolFlag{ |
