Fix SearxNG crash loop: make settings.yml readable inside the container.

Container runs as non-root; mode 0640 owned by westfarn caused
PermissionError on /etc/searxng/settings.yml and a restart loop.
Also lengthen the default secret_key to >= 32 chars.
This commit is contained in:
2026-08-02 13:42:58 -05:00
parent f1f96e49b1
commit 6218f62408
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -8,7 +8,7 @@
state: directory
owner: "{{ admin_user }}"
group: "{{ admin_user }}"
mode: "0750"
mode: "0755"
- name: searxng | settings.yml
ansible.builtin.template:
@@ -16,7 +16,8 @@
dest: "{{ searxng_dir }}/settings.yml"
owner: "{{ admin_user }}"
group: "{{ admin_user }}"
mode: "0640"
# Container runs as non-root searxng UID — must be world-readable (#10).
mode: "0644"
register: _searxng_settings
- name: searxng | compose file