mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
Fix the issue on /admin/fetch/edit
This commit is contained in:
parent
9c7dfbeb24
commit
c0c91691fd
@ -25,7 +25,9 @@
|
||||
{%- call macros.card(title="Settings") %}
|
||||
{{ macros.form_field(form.keep) }}
|
||||
{{ macros.form_field(form.scan) }}
|
||||
{%- block folders %}
|
||||
{{ macros.form_field(form.folders) }}
|
||||
{%- endblock %}
|
||||
{%- endcall %}
|
||||
|
||||
{{ macros.form_field(form.submit) }}
|
||||
|
@ -7,3 +7,15 @@
|
||||
{%- block subtitle %}
|
||||
{{ user }}
|
||||
{%- endblock %}
|
||||
|
||||
{%- block folders %}
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-xs-12 ">
|
||||
|
||||
<label for="folders">Folders to fetch on the server</label>
|
||||
<input class="form-control" id="folders" name="folders" type="text" value="{{ form.folders.data|join(',') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%- endblock %}
|
||||
|
@ -48,7 +48,7 @@ sed -E '/^#/d;s:^FROM system$:FROM system AS base:' "${base}/Dockerfile" >Docker
|
||||
|
||||
# assets
|
||||
cp "${assets}/package.json" .
|
||||
cp -r "${assets}/assets/" .
|
||||
cp -r "${assets}/assets" ./assets
|
||||
awk '/new compress/{f=1}!f{print}/}),/{f=0}' <"${assets}/webpack.config.js" >webpack.config.js
|
||||
sed -E '/^#/d;s:^(FROM [^ ]+$):\1 AS assets:' "${assets}/Dockerfile" >>Dockerfile
|
||||
|
||||
@ -65,7 +65,7 @@ RUN set -euxo pipefail \
|
||||
; ln -s /app/start.py /
|
||||
|
||||
ENV \
|
||||
FLASK_ENV="development" \
|
||||
FLASK_DEBUG="true" \
|
||||
MEMORY_SESSIONS="true" \
|
||||
RATELIMIT_STORAGE_URL="memory://" \
|
||||
SESSION_COOKIE_SECURE="false" \
|
||||
@ -82,7 +82,7 @@ ENV \
|
||||
REDIS_ADDRESS="127.0.0.1" \
|
||||
WEBMAIL_ADDRESS="127.0.0.1"
|
||||
|
||||
CMD ["/bin/bash", "-c", "flask db upgrade &>/dev/null && flask mailu admin '${DEV_ADMIN/@*}' '${DEV_ADMIN#*@}' '${DEV_PASSWORD}' --mode ifmissing >/dev/null && flask run --host=0.0.0.0 --port=8080"]
|
||||
CMD ["/bin/bash", "-c", "flask db upgrade &>/dev/null && flask mailu admin '${DEV_ADMIN/@*}' '${DEV_ADMIN#*@}' '${DEV_PASSWORD}' --mode ifmissing >/dev/null; flask run --debugger --host=0.0.0.0 --port=8080"]
|
||||
EOF
|
||||
|
||||
# build
|
||||
|
Loading…
Reference in New Issue
Block a user