26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Tworzenie obrazu{% endblock %}
|
|
{% block style %}
|
|
<link rel="stylesheet" href="/style/create.css" />
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<br>
|
|
<h1 class="mx-auto">Formularz tworzenia obrazu konfiguracyjnego</h1>
|
|
<form method="POST" action="/api/createconf" enctype="multipart/form-data">
|
|
<label>Nazwa konfiguracji:</label>
|
|
<input type="text" name="config_name" required><br><br>
|
|
<label>Nazwa tokenu:</label>
|
|
<input type="text" name="token_name" required><br><br>
|
|
<label>Długość klucza:</label>
|
|
<input type="number" name="key_length" min="1024" value="2048" required><br><br>
|
|
<label>Adres ip VPN:</label>
|
|
<input type="text" name="ip" required><br><br>
|
|
<label>Hasło dla roota:</label>
|
|
<input type="password" name="pass" required><br><br>
|
|
<label>Konfiguracja authorized_keys:</label>
|
|
<textarea name="authorized_keys_config" rows="4" cols="50"></textarea><br><br>
|
|
<input type="submit" value="Wyślij">
|
|
</form>
|
|
{% endblock %}
|