nixos-config/modules/wireguard/home/index.html.j2
Simon Bruder 642d97cb52
wireguard/home: Add basic overview page
It is very basic and not pretty, but it is a base that can be extended.
2023-04-07 13:47:40 +02:00

23 lines
623 B
Django/Jinja

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>VPN</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>VPN</h1>
<h2>Machines</h2>
{%- for machine, config in machines.items() %}
{%- set base_url = "http://" ~ machine ~ ".vpn.sbruder.de" %}
<h3>{{ machine }}</h3>
<ul>
{% if config.syncthing is not none %}<li><a href="{{ base_url }}:{{ config.syncthing }}/">Syncthing</a></li>{% endif %}
</ul>
{%- endfor %}
</div>
</body>
</html>