plugin app manager: "public_url" must NOT have a schema
This commit is contained in:
parent
6c2d81696c
commit
35659893be
1 changed files with 8 additions and 6 deletions
|
|
@ -160,17 +160,19 @@ class AppManager:
|
|||
)
|
||||
|
||||
value = self.host.memory.getConfig(section, name, default)
|
||||
if name == "public_url" and (not value or not value.startswith('http')):
|
||||
# FIXME: "public_url" is used only here and doesn't take multi-sites into account
|
||||
if name == "public_url" and (not value or value.startswith('http')):
|
||||
if not value:
|
||||
log.warning(_(
|
||||
'No value found for "public_url", using "https://example.org" for '
|
||||
'now, please set the proper value in sat.conf'))
|
||||
'No value found for "public_url", using "example.org" for '
|
||||
'now, please set the proper value in libervia.conf'))
|
||||
else:
|
||||
log.warning(_(
|
||||
'invalid value for "public_url" ({value}), it must start with '
|
||||
'"http", ignoring it and using "https://example.org" instead')
|
||||
'invalid value for "public_url" ({value}), it musts not start with '
|
||||
'schema ("http"), ignoring it and using "example.org" '
|
||||
'instead')
|
||||
.format(value=value))
|
||||
value = "https://example.org"
|
||||
value = "example.org"
|
||||
|
||||
if filter_ is None:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue