From f9bc305acaaf26bf3c5ef4ae49f7b5a20c9c1dfe Mon Sep 17 00:00:00 2001 From: f0x52 Date: Mon, 21 Jun 2021 19:46:10 +0200 Subject: 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 --- cmd/gotosocial/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd') 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{ -- cgit v1.3