feat: improve index.html a little bit

This commit is contained in:
b1ek 2024-07-27 23:33:31 +10:00
parent a351dd6aee
commit e5c8dc252a
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 14 additions and 5 deletions

View File

@ -9,6 +9,10 @@ export class ViewsController {
@Get() @Get()
@Render('index.html') @Render('index.html')
index() { index() {
return { keys: this.allKeysProvider.getAll().map((x) => x.url) } return {
keys: this.allKeysProvider.getAll()
.map(x => x.url)
.map(x => ({ url: x, domain: x.replace(/^\S+:\/\//, '') }))
}
} }
} }

View File

@ -10,18 +10,23 @@
<p> <p>
this is a GPG keyserver that serves keys from all the following servers combined: this is a GPG keyserver that serves keys from all the following servers combined:
</p> </p>
<ul> <ul id="keyservers">
{{#each keys}} {{#each keys}}
<li>{{ this }}</li> <li><a href="{{ url }}">{{ domain }}</a></li>
{{/each}} {{/each}}
</ul> </ul>
<p> <p>
point is to reduce situations when one keyserver has a key but another one which you use, doesnt point is to reduce situations when one keyserver has a key but another one which you use, doesnt
</p> </p>
<h2>transparency</h2> <h2>privacy</h2>
<p> <p>
a specific instance (like this one) may not be fully transparent. in fact, its recommended for you to make your own instance by default, you should not trust third party servers to be fully private. your requests are fairly private as nothing but your IP is exposed to keyservers.
</p>
<h2>abuse</h2>
<p>
this website does not store keys but temporary cache. refer to <a href='#keyservers'>upstream servers</a> for that
</p> </p>
</body> </body>
</html> </html>