File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,8 @@ func parseStringAsURL() mapstructure.DecodeHookFuncType {
175175 return nil , fmt .Errorf ("cannot cast URL value to string" )
176176 }
177177 if dataStr == "" {
178- return nil , fmt .Errorf ("empty values are not allowed for URLs" )
178+ // NOTE: In some cases a url is optional and in this case the field is just ""
179+ return nil , nil
179180 }
180181 url , err := url .Parse (dataStr )
181182 if err != nil {
Original file line number Diff line number Diff line change @@ -59,5 +59,8 @@ func (c LoginConfig) Validate(e RunningEnvironment) error {
5959 if c .EnableV1Services && ! c .EnableInternalGitlab {
6060 return fmt .Errorf ("enabling V1 (legacy) services but disabling the internal Gitlab is not supported in the login config" )
6161 }
62+ if c .RenkuBaseURL == nil {
63+ return fmt .Errorf ("the renkuBaseURL cannot be null or ''" )
64+ }
6265 return nil
6366}
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ func (r *RevproxyConfig) Validate() error {
4343 if r .EnableV1Services && ! r .EnableInternalGitlab {
4444 return fmt .Errorf ("enabling V1 (legacy) services but disabling the internal Gitlab is not supported in the reverse proxy config" )
4545 }
46+ if r .RenkuBaseURL == nil {
47+ return fmt .Errorf ("the renkuBaseURL cannot be null or ''" )
48+ }
4649
4750 // Check v1 services if needed
4851 if r .EnableV1Services {
You can’t perform that action at this time.
0 commit comments