2018-10-16 15:12:42 +02:00
|
|
|
{% call macros.panel("info", "Step 0 - Initial configuration") %}
|
|
|
|
<p>Before starting some variables must be st</p>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Root path: </label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<!-- Validates path -->
|
|
|
|
<input class="form-control" type="text" name="root" value="/mailu" required pattern="^/[-_A-Za-z0-9]+(/[-_A-Za-z0-9]*)*">
|
2018-10-16 15:12:42 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Main mail domain</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<!-- Validates domain name -->
|
|
|
|
<input class="form-control" type="text" name="domain" placeholder="e.g. mailu.io"
|
|
|
|
required pattern="^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$">
|
2018-10-16 15:12:42 +02:00
|
|
|
</div>
|
|
|
|
|
2018-10-16 17:03:59 +02:00
|
|
|
<div class="form-check form-check-inline">
|
|
|
|
<label class="form-check-label">
|
|
|
|
<input class="form-check-input" type="checkbox" name="domain_registration" value="true">
|
|
|
|
Domain registration
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2018-10-16 15:12:42 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Postmaster local part (will append the main mail domain)</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<input class="form-control" type="text" name="postmaster" value="admin" required>
|
2018-10-16 15:12:42 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Choose how secure connections will behave </label>
|
|
|
|
<br/>
|
|
|
|
<select name="tls_flavor">
|
|
|
|
{% for tlsflavor in ["letsencrypt", "cert", "notls", "mail", "mail-letsencrypt"] %}
|
|
|
|
<option value="{{ tlsflavor }}" >{{ tlsflavor }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Authentication rate limit (per source IP address)</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<!-- Validates number input only -->
|
|
|
|
<p><input class="form-control" style="width: 7%; display: inline;" type="number" name="auth_ratelimit_pm"
|
|
|
|
value="10" required >/minute;
|
|
|
|
<input class="form-control" style="width: 7%; display: inline;;" type="number" name="auth_ratelimit_ph"
|
|
|
|
value="1000" required >/hour</p>
|
2018-10-16 15:12:42 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-check form-check-inline">
|
|
|
|
<label class="form-check-label">
|
|
|
|
<input class="form-check-input" type="checkbox" name="disable_statistics" value="True">
|
|
|
|
Opt-out of statistics
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Website name</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<input class="form-control" type="text" name="site_name" value="Mailu" required>
|
2018-10-16 15:12:42 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Linked Website URL</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<!-- Validates url with or without https:// -->
|
|
|
|
<input class="form-control" type="url" name="website" value="https://mailu.io" required
|
|
|
|
pattern="^(https?://)?([a-zA-Z0-9]([a-zA-ZäöüÄÖÜ0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$">
|
2018-10-16 15:12:42 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endcall %}
|