summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2021-06-21 19:46:10 +0200
committerLibravatar GitHub <noreply@github.com>2021-06-21 19:46:10 +0200
commitf9bc305acaaf26bf3c5ef4ae49f7b5a20c9c1dfe (patch)
treec7312570819f998a51ad79e950baf523ae6426f8 /cmd
parentDeletes+unboosts (#52) (diff)
downloadgotosocial-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.go6
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{