From aa9ce272dcfa1380b2f05bc3a90ef8ca1b0a7f62 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 22 Mar 2021 22:26:54 +0100 Subject: Oauth/token (#7) * add host and protocol options * some fiddling * tidying up and comments * tick off /oauth/token * tidying a bit * tidying * go mod tidy * allow attaching middleware to server * add middleware * more user friendly * add comments * comments * store account + app * tidying * lots of restructuring * lint + tidy --- cmd/gotosocial/main.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cmd') diff --git a/cmd/gotosocial/main.go b/cmd/gotosocial/main.go index 96798035e..0919d5fc4 100644 --- a/cmd/gotosocial/main.go +++ b/cmd/gotosocial/main.go @@ -58,6 +58,18 @@ func main() { Value: "", EnvVars: []string{envNames.ConfigPath}, }, + &cli.StringFlag{ + Name: flagNames.Host, + Usage: "Hostname to use for the server (eg., example.org, gotosocial.whatever.com)", + Value: "localhost", + EnvVars: []string{envNames.Host}, + }, + &cli.StringFlag{ + Name: flagNames.Protocol, + Usage: "Protocol to use for the REST api of the server (only use http for debugging and tests!)", + Value: "https", + EnvVars: []string{envNames.Protocol}, + }, // DATABASE FLAGS &cli.StringFlag{ -- cgit v1.2.3