Browse Source

various fixes for new version of nextcloud

master
Mar Alegre 2 weeks ago
parent
commit
5efe8430a0
  1. 10
      nextcloud/Containerfile
  2. 4
      nextcloud/Systemdfile
  3. 2
      nextcloud/assets/bin/db-make
  4. 4
      nextcloud/assets/php/php.ini

10
nextcloud/Containerfile

@ -27,7 +27,6 @@ RUN apt update -y && apt install -y apache2 php-fpm php-gd php-zip php-pgsql \
php-curl php-mbstring php-intl php-imagick php-xml php-gmp php-json \
redis php-redis postgresql postgresql-doc php-ldap php-bcmath cron
# put database variables in /etc/environment so anyone can access them
# also autodetect versions of php and postgres and put them in /etc/environment as well
RUN echo "DBUSER=$DBUSER" >> /etc/environment && \
@ -66,13 +65,12 @@ RUN mv php/php.ini /etc/php/${PHPV:?}/fpm/ && \
###
# configure PostgreSQL
COPY --chown=postgres:postgres assets/postgresql ./
COPY --chown=postgres:postgres assets/postgresql postgresql/
# If the posgresql.conf file contains multiple entries for the same parameter, all but the last one is ignored.
# So we can just append our settings to the already-existing postgresql.conf file.
RUN mv postgresql/pg_hba.conf /etc/postgresql/${PSQLV:?}/main/ & \
cat postgresql/postgresql.conf >> /etc/postgresql/${PSQLV:?}/main/postgresql.conf
RUN mv postgresql/pg_hba.conf /etc/postgresql/${PSQLV:?}/main/ && \
cat postgresql/postgresql.conf >> /etc/postgresql/${PSQLV:?}/main/postgresql.conf && \
rm -r postgresql
###
### Apache

4
nextcloud/Systemdfile

@ -23,10 +23,10 @@ nc-occ app:install calendar
nc-occ app:install contacts
nc-occ app:install notes
nc-occ app:install bookmarks
nc-occ app:install mail
#nc-occ app:install mail
# disable apps we don't want
nc-occ app:disable comments dashboard federation files_trashbin firstrunwizard recommendations support survey_client systemtags
nc-occ app:disable comments dashboard federation files_trashbin firstrunwizard recommendations support survey_client systemtags weather_status
# configure apps
# set calendar to refresh subscriptions once a day (to set to one hour use 'PT1H' instead)

2
nextcloud/assets/bin/db-make

@ -9,4 +9,4 @@ cmd "DROP DATABASE IF EXISTS ${DBNAME:?};"
cmd "DROP USER IF EXISTS ${DBUSER:?};"
cmd "CREATE USER ${DBUSER:?};"
cmd "CREATE DATABASE ${DBNAME:?};"
cmd "GRANT ALL PRIVILEGES ON DATABASE ${DBNAME:?} TO ${DBUSER:?};"
cmd "ALTER DATABASE ${DBNAME:?} OWNER TO ${DBUSER:?};"

4
nextcloud/assets/php/php.ini

@ -1785,10 +1785,10 @@ opcache.enable=1
;opcache.enable_cli=0
; The OPcache shared memory storage size.
opcache.memory_consumption=128
opcache.memory_consumption=256
; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8
opcache.interned_strings_buffer=16
; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.

Loading…
Cancel
Save