From 20ce8eedeb0b96a24ec52dd3e5af5e1f9bc354a8 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 12 Oct 2024 10:37:49 -0400 Subject: [PATCH] navidrome: fix up things --- roles/containers/tasks/main.yml | 10 ++++++++++ roles/containers/templates/docker-compose.yml.j2 | 1 + 2 files changed, 11 insertions(+) diff --git a/roles/containers/tasks/main.yml b/roles/containers/tasks/main.yml index a344958..c4d39ec 100644 --- a/roles/containers/tasks/main.yml +++ b/roles/containers/tasks/main.yml @@ -113,6 +113,16 @@ group: vault mode: "u=rwX,g=rwX,o=" +- name: Set ACL to allow navidrome to read synced music + ansible.posix.acl: + default: true + entity: navidrome + etype: user + permissions: rx + recursive: true + state: present + path: "{{ music_path }}" + - name: Create docker-compose directory ansible.builtin.file: path: "{{ docker_compose_dir }}" diff --git a/roles/containers/templates/docker-compose.yml.j2 b/roles/containers/templates/docker-compose.yml.j2 index 4a8396d..317e685 100644 --- a/roles/containers/templates/docker-compose.yml.j2 +++ b/roles/containers/templates/docker-compose.yml.j2 @@ -61,6 +61,7 @@ services: environment: ND_LISTENBRAINZ_ENABLED: true ND_ENABLESHARING: {{ navidrome_sharing | default("false", true) }} + ND_SESSIONTIMEOUT: "168h" restart: unless-stopped volumes: - "{{ dataroot }}/navidrome:/data"