diff --git a/templates/app.ini.j2 b/templates/app.ini.j2 index f3b4257..60782ac 100644 --- a/templates/app.ini.j2 +++ b/templates/app.ini.j2 @@ -6,9 +6,11 @@ RUN_USER = {{ gitea_run_user }} {% for section in gitea_config %} [{{ section }}] +{% if gitea_config[section] is not none %} {% for entry, value in gitea_config[section].items() %} {{ entry }} = {{ value }} {% endfor %} +{% endif %} {% endfor %} \ No newline at end of file