Browse Source

templates: isso.cfg: Only enable admin if pw set

master
Felix 2 months ago
parent
commit
78da49cb2c
  1. 2
      README.md
  2. 2
      defaults/main.yml
  3. 4
      templates/isso.cfg.j2

2
README.md

@ -15,7 +15,7 @@ isso_python_version: "3.9"
isso_log_dir: "/var/log/isso"
isso_hosts:
- http://localhost # Use https for this...
isso_admin_password: changeme
isso_admin_password:
isso_moderation_purge_after: '364d'
isso_server_port: 8080
isso_server_listen: "http://0.0.0.0:{{ isso_server_port }}"

2
defaults/main.yml

@ -11,7 +11,7 @@ isso_python_version: "3.9"
isso_log_dir: "{{ isso_user_home }}/logs"
isso_hosts:
- http://localhost # Use https for this...
isso_admin_password: changeme
isso_admin_password:
isso_salt: "Eech7co8Ohloopo9Ol6baimi"
isso_moderation_purge_after: '364d'
isso_server_port: 8080

4
templates/isso.cfg.j2

@ -20,11 +20,11 @@ token = {{ isso_telegram_token }}
chat_id = {{ isso_telegram_chatid }}
{% endif %}
{% if isso_admin_password %}
[admin]
# New since 12.x or so
#admin_password = changeme
enabled = true
password = {{isso_admin_password}}
{% endif %}
[moderation]
enabled = true

Loading…
Cancel
Save