From 9c356a140e4c4d752f292abb0247ba04eec5f353 Mon Sep 17 00:00:00 2001 From: Daniele Viti Date: Wed, 13 Sep 2023 15:01:41 +0200 Subject: [PATCH] moved settings to folder --- Dockerfile | 6 +++--- settings.json => settings/fb-settings.json | 2 +- users.json => settings/fb-users.json | 0 nginx.conf => settings/nginx.conf | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename settings.json => settings/fb-settings.json (80%) rename users.json => settings/fb-users.json (100%) rename nginx.conf => settings/nginx.conf (100%) diff --git a/Dockerfile b/Dockerfile index 61c65fe..a55bec8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,9 @@ RUN fdroid init -v RUN fdroid update # serve the /repo directory using Filebrowser and NGINX RUN apt-get install -y nginx curl -RUN rm /etc/nginx/nginx.conf -COPY nginx.conf /etc/nginx/nginx.conf +COPY settings/nginx.conf /etc/nginx/nginx.conf RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash -COPY settings.json /config/settings.json +COPY settings/fb-settings.json /usr/local/.fbconfig/settings.json +COPY settings/fb-users.json /usr/local/.fbconfig/users.json ENTRYPOINT [] CMD ["bash", "-c", "nginx && /usr/local/bin/filebrowser --config /config/settings.json"] \ No newline at end of file diff --git a/settings.json b/settings/fb-settings.json similarity index 80% rename from settings.json rename to settings/fb-settings.json index d5ea265..f02ee46 100644 --- a/settings.json +++ b/settings/fb-settings.json @@ -7,6 +7,6 @@ "root": "/fdroid/repo", "auth": { "method": "json", - "file": "/config/users.json" + "file": "/usr/local/.fbconfig/users.json" } } diff --git a/users.json b/settings/fb-users.json similarity index 100% rename from users.json rename to settings/fb-users.json diff --git a/nginx.conf b/settings/nginx.conf similarity index 100% rename from nginx.conf rename to settings/nginx.conf