filebrowser: seed config.yaml that the bind mount would otherwise hide
The image ships /home/filebrowser/data/config.yaml, but mounting the host directory there hides it and the app refuses to start. Seed it with tmpfiles 'C' (create-if-missing) so it stays editable afterwards. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -151,6 +151,19 @@
|
|||||||
# das Image läuft non-root als filebrowser:1000.
|
# das Image läuft non-root als filebrowser:1000.
|
||||||
"d /data/filebrowser 0755 danlin users -"
|
"d /data/filebrowser 0755 danlin users -"
|
||||||
|
|
||||||
|
# Das Image bringt eine config.yaml mit, die aber vom Bind-Mount auf
|
||||||
|
# /home/filebrowser/data verdeckt wird — ohne sie startet es nicht.
|
||||||
|
# "C" legt sie nur an, wenn sie fehlt; Änderungen bleiben erhalten.
|
||||||
|
"C /data/filebrowser/config.yaml 0644 danlin users - ${pkgs.writeText "filebrowser-config.yaml" ''
|
||||||
|
server:
|
||||||
|
port: 80
|
||||||
|
baseURL: "/"
|
||||||
|
logging:
|
||||||
|
- levels: "info|warning|error"
|
||||||
|
sources:
|
||||||
|
- path: "/srv"
|
||||||
|
''}"
|
||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
"d /data/secrets 0700 root root -"
|
"d /data/secrets 0700 root root -"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user