From 938f4cf51f8a7bd1d46d28de7947be732dc1505a Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Sat, 1 Jan 2022 13:09:21 -0500 Subject: [PATCH] added secrets config file --- nextcloud/Containerfile | 12 ++++++++++-- nextcloud/data/secret.config.php | 10 ++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 nextcloud/data/secret.config.php diff --git a/nextcloud/Containerfile b/nextcloud/Containerfile index 979bf6c..f175981 100644 --- a/nextcloud/Containerfile +++ b/nextcloud/Containerfile @@ -109,8 +109,10 @@ RUN mkdir -p /vol/files && \ # copy nextcloud config COPY --chown=www-data:www-data assets/config/ nextcloud/config/ -# make link to host config -RUN ln -s /vol/data/host.config.php nextcloud/config/host.config.php +# make link to host config & secret config +RUN cd nextcloud/config && \ + ln -s /vol/data/host.config.php && \ + ln -s /vol/data/secret.config.php ### ### DB Auto Load/Dump @@ -141,3 +143,9 @@ COPY assets/bugfix/apache2.override /etc/systemd/system/apache2.service.d/overri # bugfix for cron COPY assets/bugfix/cronfix /root/ RUN chmod +x /root/cronfix && /root/cronfix + +### +### Workdir +### + +WORKDIR /vol/data diff --git a/nextcloud/data/secret.config.php b/nextcloud/data/secret.config.php new file mode 100644 index 0000000..c470173 --- /dev/null +++ b/nextcloud/data/secret.config.php @@ -0,0 +1,10 @@ + '', + 'secret' => '', + 'instanceid' => '', +*/ +);