2023-04-19 12:58:31 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block title %}Tworzenie obrazu{% endblock %}
|
|
|
|
{% block style %}
|
2023-04-24 10:22:17 +02:00
|
|
|
<link rel="stylesheet" href="/style/create.css" />
|
2023-04-19 12:58:31 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-04-19 13:03:05 +02:00
|
|
|
<br>
|
2023-04-21 10:46:46 +02:00
|
|
|
<h1 class="mx-auto">Formularz tworzenia obrazu konfiguracyjnego</h1>
|
2023-04-13 13:13:39 +02:00
|
|
|
<form method="POST" action="/api/createconf" enctype="multipart/form-data">
|
2023-04-21 10:40:09 +02:00
|
|
|
<label>Nazwa konfiguracji:</label>
|
2023-04-13 12:55:06 +02:00
|
|
|
<input type="text" name="config_name" required><br><br>
|
2023-04-21 10:40:09 +02:00
|
|
|
<label>Nazwa tokenu:</label>
|
2023-04-13 12:55:06 +02:00
|
|
|
<input type="text" name="token_name" required><br><br>
|
2023-04-21 10:40:09 +02:00
|
|
|
<label>Długość klucza:</label>
|
2023-04-19 15:38:24 +02:00
|
|
|
<input type="number" name="key_length" min="1024" value="2048" required><br><br>
|
2023-04-21 10:40:09 +02:00
|
|
|
<label>Adres ip VPN:</label>
|
2023-04-19 13:46:25 +02:00
|
|
|
<input type="text" name="ip" required><br><br>
|
2023-04-21 10:40:09 +02:00
|
|
|
<label>Hasło dla roota:</label>
|
|
|
|
<input type="password" name="pass" required><br><br>
|
|
|
|
<label>Konfiguracja authorized_keys:</label>
|
2023-04-13 12:55:06 +02:00
|
|
|
<textarea name="authorized_keys_config" rows="4" cols="50"></textarea><br><br>
|
|
|
|
<input type="submit" value="Wyślij">
|
|
|
|
</form>
|
2023-04-19 12:58:31 +02:00
|
|
|
{% endblock %}
|