1
0
mirror of https://github.com/Luzifer/mondash.git synced 2024-09-19 00:42:57 +00:00

Add default value for BaseURL

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-05-01 15:14:21 +02:00
parent d9cd13abc7
commit 8b998d4a59
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -19,7 +19,7 @@ var (
store storage.Storage
cfg = struct {
APIToken string `flag:"api-token" env:"API_TOKEN" description:"API Token used for the /welcome dashboard (you can choose your own)"`
BaseURL string `flag:"baseurl" env:"BASE_URL" description:"The Base-URL the application is running on for example https://mondash.org"`
BaseURL string `flag:"baseurl" env:"BASE_URL" default:"http://127.0.0.1:3000" description:"The Base-URL the application is running on for example https://mondash.org"`
FrontendDir string `flag:"frontend-dir" default:"./frontend" description:"Directory to serve frontend assets from"`
Storage string `flag:"storage" default:"file:///data" description:"Storage engine to use"`