From 234a8f9b019c3f9edef33453c0c79c2b5ae80f81 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Sat, 10 Oct 2020 19:58:54 +0200 Subject: [PATCH] cr fixes --- example.scrutiny.yaml | 3 +++ webapp/backend/pkg/config/config.go | 1 + 2 files changed, 4 insertions(+) diff --git a/example.scrutiny.yaml b/example.scrutiny.yaml index 9744f19..292eabc 100644 --- a/example.scrutiny.yaml +++ b/example.scrutiny.yaml @@ -26,6 +26,9 @@ web: src: frontend: path: /scrutiny/web + # leave empty unless behind a path prefixed proxy + backend: + basepath: # if behind a path prefixed proxy set to path value log: diff --git a/webapp/backend/pkg/config/config.go b/webapp/backend/pkg/config/config.go index 6349b55..2116e37 100644 --- a/webapp/backend/pkg/config/config.go +++ b/webapp/backend/pkg/config/config.go @@ -30,6 +30,7 @@ func (c *configuration) Init() error { c.SetDefault("web.listen.port", "8080") c.SetDefault("web.listen.host", "0.0.0.0") c.SetDefault("web.src.frontend.path", "/scrutiny/web") + c.SetDefault("web.src.backend.basepath", "") c.SetDefault("web.database.location", "/scrutiny/config/scrutiny.db") c.SetDefault("log.level", "INFO")