mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 23:37:18 +00:00
add index url
This commit is contained in:
parent
d73d5daad3
commit
3e032c3515
@ -129,6 +129,7 @@ Web server settings. If any of `host`/`port` is not set, web integration will be
|
|||||||
* `debug_check_host` - check hosts to access debug toolbar, boolean, optional, default `no`.
|
* `debug_check_host` - check hosts to access debug toolbar, boolean, optional, default `no`.
|
||||||
* `debug_allowed_hosts` - allowed hosts to get access to debug toolbar, space separated list of string, optional.
|
* `debug_allowed_hosts` - allowed hosts to get access to debug toolbar, space separated list of string, optional.
|
||||||
* `host` - host to bind, string, optional.
|
* `host` - host to bind, string, optional.
|
||||||
|
* `index_url` - full url of the repository index page, string, optional.
|
||||||
* `password` - password to authorize in web service in order to update service status, string, required in case if authorization enabled.
|
* `password` - password to authorize in web service in order to update service status, string, required in case if authorization enabled.
|
||||||
* `port` - port to bind, int, optional.
|
* `port` - port to bind, int, optional.
|
||||||
* `static_path` - path to directory with static files, string, required.
|
* `static_path` - path to directory with static files, string, required.
|
||||||
|
@ -100,6 +100,12 @@
|
|||||||
<li><a class="nav-link" href="https://github.com/arcan1s/ahriman/issues" title="issues tracker">report a bug</a></li>
|
<li><a class="nav-link" href="https://github.com/arcan1s/ahriman/issues" title="issues tracker">report a bug</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{% if index_url is not none %}
|
||||||
|
<ul class="nav">
|
||||||
|
<li><a class="nav-link" href="{{ index_url }}" title="repo index">repo index</a></li>
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if auth.enabled %}
|
{% if auth.enabled %}
|
||||||
{% if auth.username is none %}
|
{% if auth.username is none %}
|
||||||
{{ auth.control|safe }}
|
{{ auth.control|safe }}
|
||||||
|
@ -42,6 +42,7 @@ class IndexView(BaseView):
|
|||||||
* control - HTML to insert for login control, HTML string, required
|
* control - HTML to insert for login control, HTML string, required
|
||||||
* enabled - whether authorization is enabled by configuration or not, boolean, required
|
* enabled - whether authorization is enabled by configuration or not, boolean, required
|
||||||
* username - authenticated username if any, string, null means not authenticated
|
* 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
|
packages - sorted list of packages properties, required
|
||||||
* base, string
|
* base, string
|
||||||
* depends, sorted list of strings
|
* depends, sorted list of strings
|
||||||
@ -102,6 +103,7 @@ class IndexView(BaseView):
|
|||||||
return {
|
return {
|
||||||
"architecture": self.service.architecture,
|
"architecture": self.service.architecture,
|
||||||
"auth": auth,
|
"auth": auth,
|
||||||
|
"index_url": self.configuration.get("web", "index_url", fallback=None),
|
||||||
"packages": packages,
|
"packages": packages,
|
||||||
"repository": self.service.repository.name,
|
"repository": self.service.repository.name,
|
||||||
"service": service,
|
"service": service,
|
||||||
|
Loading…
Reference in New Issue
Block a user