debian-setup/templates/syncthing/config.j2

40 lines
1.1 KiB
Django/Jinja

<!-- {{ ansible_managed }} -->
<configuration version="{{ syncthing_config_version }}">
{% for folder in syncthing_folders -%}
<folder
id="{{ folder.id }}"
label="{{ folder.label }}"
path="{{ folder.path }}"
type="{{ folder.type }}">
{% for id in folder.devices -%}
<device id="{{ id }}">
<encryptionPassword></encryptionPassword>
</device>
{%- endfor %}
<minDiskFree unit="%">20</minDiskFree>
</folder>
{%- endfor %}
{% for device in syncthing_devices -%}
<device
id="{{ device.id }}"
name="{{ device.name }}"
compression="metadata">
<address>{{ device.address }}</address>
<untrusted>false</untrusted>
</device>
{%- endfor %}
<gui enabled="true" tls="true" debugging="false">
<address>{{ syncthing_listen_address }}:{{ syncthing_gui_port }}</address>
<theme>default</theme>
<insecureAdminAccess>true</insecureAdminAccess>
</gui>
<options>
<listenAddress>tcp://{{ syncthing_listen_address }}:{{ syncthing_protocol_port }}</listenAddress>
</options>
</configuration>