diff --git a/setup/flavors/compose/docker-compose.yml b/setup/flavors/compose/docker-compose.yml index 3d84e595..4cebdc2c 100644 --- a/setup/flavors/compose/docker-compose.yml +++ b/setup/flavors/compose/docker-compose.yml @@ -1,6 +1,7 @@ {% set env='mailu.env' %} # This file is auto-generated by the Mailu configuration wizard. # Please read the documentation before attempting any change. +# Generated for {{ flavor }} flavor version: '3.6' diff --git a/setup/flavors/compose/mailu.env b/setup/flavors/compose/mailu.env index fba5bee8..dc788bea 100644 --- a/setup/flavors/compose/mailu.env +++ b/setup/flavors/compose/mailu.env @@ -1,5 +1,7 @@ # Mailu main configuration file # +# Generated for {{ flavor }} flavor +# # This file is autogenerated by the configuration management wizard. # For a detailed list of configuration variables, see the documentation at # https://mailu.io diff --git a/setup/flavors/stack/docker-compose.yml b/setup/flavors/stack/docker-compose.yml index 3f56d571..f27b661f 100644 --- a/setup/flavors/stack/docker-compose.yml +++ b/setup/flavors/stack/docker-compose.yml @@ -1,3 +1,8 @@ +{% set env='mailu.env' %} +# This file is auto-generated by the Mailu configuration wizard. +# Please read the documentation before attempting any change. +# Generated for {{ flavor }} flavor + version: '3.6' services: diff --git a/setup/server.py b/setup/server.py index 4e29fe9e..7818e662 100644 --- a/setup/server.py +++ b/setup/server.py @@ -68,7 +68,8 @@ def build_app(path): @bp.route("/submit_flavor", methods=["POST"]) def submit_flavor(): data = flask.request.form.copy() - return flask.render_template('wizard.html', flavor=data["flavor"]) + flavor_files = sorted(os.listdir(path + "/" + version + "/templates/steps/" + data["flavor"])) + return flask.render_template('wizard.html', flavor=data["flavor"], flavor_files=flavor_files) @bp.route("/submit", methods=["POST"]) def submit(): diff --git a/setup/templates/base.html b/setup/templates/base.html index d40a4880..5be0b1eb 100644 --- a/setup/templates/base.html +++ b/setup/templates/base.html @@ -8,7 +8,7 @@

Mailu configuration

Version - {% for available in versions %} {% endfor %} diff --git a/setup/templates/steps/compose/config.html b/setup/templates/steps/compose/01_config.html similarity index 95% rename from setup/templates/steps/compose/config.html rename to setup/templates/steps/compose/01_config.html index 8d613d08..cfca8aa7 100644 --- a/setup/templates/steps/compose/config.html +++ b/setup/templates/steps/compose/01_config.html @@ -1,5 +1,5 @@ {% call macros.panel("info", "Step 2 - Initial configuration") %} -

Before starting some variables must be st

+

Before starting some variables must be set

@@ -29,7 +29,7 @@

- {% for tlsflavor in ["letsencrypt", "cert", "notls", "mail", "mail-letsencrypt"] %} {% endfor %} diff --git a/setup/templates/steps/compose/services.html b/setup/templates/steps/compose/02_services.html similarity index 97% rename from setup/templates/steps/compose/services.html rename to setup/templates/steps/compose/02_services.html index d8ec8106..07bca6ba 100644 --- a/setup/templates/steps/compose/services.html +++ b/setup/templates/steps/compose/02_services.html @@ -26,7 +26,7 @@ accessing messages for beginner users.


- {% for webmailtype in ["none", "roundcube", "rainloop"] %} {% endfor %} diff --git a/setup/templates/steps/compose/expose.html b/setup/templates/steps/compose/03_expose.html similarity index 100% rename from setup/templates/steps/compose/expose.html rename to setup/templates/steps/compose/03_expose.html diff --git a/setup/templates/steps/compose/optional.html b/setup/templates/steps/compose/optional.html deleted file mode 100644 index b7878b23..00000000 --- a/setup/templates/steps/compose/optional.html +++ /dev/null @@ -1,16 +0,0 @@ -{% call macros.panel("info", "Step 4 - enable optional features") %} -

Mailu also comes with less common optional features that you might wish -to enable.

- -

The DAV service enables contacts and calendar storage through Mailu, -it is especially userful when synchronizing your desktop and mobile devices.

- -
- -
-
- -
-
- -{% endcall %} diff --git a/setup/templates/steps/stack/01_config.html b/setup/templates/steps/stack/01_config.html new file mode 100644 index 00000000..8ada68a7 --- /dev/null +++ b/setup/templates/steps/stack/01_config.html @@ -0,0 +1,67 @@ +{% call macros.panel("info", "Step 2 - Initial configuration") %} +

Before starting some variables must be set

+ +
+ + + +
+ +
+ + + +
+ +
+ +
+ +
+ + +
+ + + + + + + + + + + +
+ + +

/minute; + /hour

+
+ +
+ +
+ +
+ + +
+ +
+ + + +
+ +{% endcall %} diff --git a/setup/templates/steps/stack/02_services.html b/setup/templates/steps/stack/02_services.html new file mode 100644 index 00000000..07bca6ba --- /dev/null +++ b/setup/templates/steps/stack/02_services.html @@ -0,0 +1,73 @@ +{% call macros.panel("info", "Step 3 - pick some features") %} +

Mailu comes with multiple base features, including a specific admin +interface, Web email clients (webmails), antispam, antivirus, etc. If you +wish to disable some of these features, you are free to do so.

+ +

The admin interface is the main Mailu-specific bit, it provides tools to +manage your email domains, users, etc.

+ +
+ +
+
+ +
+
+ +

Emails will be available through IMAP and POP3. You may also enable a Web +email client. These do add some complexity but provide an easier way of +accessing messages for beginner users.

+ + +
+ + + + + +
+ +

+
+ + +
+
+ +

Email filtering is a really important features. You can still disable it, which +will prevent Mailu from doing spam filtering, virus filtering, and from applying +white and blacklists that you may configure in the admin interface. You may +also disable the antivirus if required (it does use aroung 1GB of ram).

+ +
+ +
+
+ +
+ +
+ +
+ +
+ +
+ +{% endcall %} diff --git a/setup/templates/steps/stack/03_expose.html b/setup/templates/steps/stack/03_expose.html new file mode 100644 index 00000000..58c538f0 --- /dev/null +++ b/setup/templates/steps/stack/03_expose.html @@ -0,0 +1,21 @@ +{% call macros.panel("info", "Step 4 - expose Mailu to the world") %} +

A mail server must be exposed to the world to receive emails, send emails, +and let users access their mailboxes. Mailu has some flexibility in the way +you expose it to the world.

+ +
+ + +
+ +

You server will be available under a main hostname but may expose multiple public +hostnames. Every e-mail domain that points to this server must have one of the +hostnames in its MX record. Hostnames must be coma-separated.

+ +
+ + + +
+{% endcall %} diff --git a/setup/templates/wizard.html b/setup/templates/wizard.html index d035a96b..b74ac1b8 100644 --- a/setup/templates/wizard.html +++ b/setup/templates/wizard.html @@ -15,11 +15,10 @@ {% if flavor %}
- {% include "steps/" + flavor + "/config.html" %} - {% include "steps/" + flavor + "/services.html" %} - {% include "steps/" + flavor + "/expose.html" %} + {%for file in flavor_files %} + {% include "steps/" + flavor + "/" + file %} + {% endfor %} {% endif %} -
{% endblock %}