add index url

This commit is contained in:
2021-09-26 14:29:42 +03:00
parent d73d5daad3
commit 3e032c3515
3 changed files with 9 additions and 0 deletions

View File

@ -42,6 +42,7 @@ class IndexView(BaseView):
* control - HTML to insert for login control, HTML string, required
* enabled - whether authorization is enabled by configuration or not, boolean, required
* username - authenticated username if any, string, null means not authenticated
index_url - url to the repository index, string, optional
packages - sorted list of packages properties, required
* base, string
* depends, sorted list of strings
@ -102,6 +103,7 @@ class IndexView(BaseView):
return {
"architecture": self.service.architecture,
"auth": auth,
"index_url": self.configuration.get("web", "index_url", fallback=None),
"packages": packages,
"repository": self.service.repository.name,
"service": service,