Merge pull request 'develop' (#16) from develop into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #16
This commit is contained in:
Glenn Y. Rolland 2025-05-16 15:31:32 +00:00
commit 7907cebf0d
6 changed files with 82 additions and 13 deletions

View file

@ -108,6 +108,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
supervisor \ supervisor \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir /var/log/supervisord /var/run/supervisord && mkdir /var/log/supervisord /var/run/supervisord
COPY supervisor.conf.d/* /etc/supervisor/conf.d/
COPY supervisord.conf /etc/supervisord.conf COPY supervisord.conf /etc/supervisord.conf
# COPY --chmod=755 ./hooks/gx.post-installation.www.sh /app/gx.post-installation.www.sh # COPY --chmod=755 ./hooks/gx.post-installation.www.sh /app/gx.post-installation.www.sh

View file

@ -44,3 +44,35 @@ Add this in crontab
dokku enter cloud web su -l -s /bin/bash - www-data -c "cd html && php -dmemory_limit=-1 ./occ app:update --all" dokku enter cloud web su -l -s /bin/bash - www-data -c "cd html && php -dmemory_limit=-1 ./occ app:update --all"
dokku nginx:set cloud client-max-body-size 500m dokku nginx:set cloud client-max-body-size 500m
## Extra configuration steps
Accessing site insecurely via HTTP. You are strongly advised to set up your server to require HTTPS instead. Without it some important web functionality like "copy to clipboard" or "service workers" will not work! For more details see the documentation ↗.
'trusted_proxies' =>
array (
0 => '172.17.0.1',
),
Server has no maintenance window start time configured. This means resource intensive daily background jobs will also be executed during your main usage time. We recommend to set it to a time of low usage, so users are less impacted by the load caused from these heavy tasks. For more details see the documentation ↗.
'maintenance_window_start' => 1,
One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.
./occ maintenance:repair --include-expensive
MariaDB version "11.7.2-MariaDB-ubu2404" detected. MariaDB >=10.6 and <=11.4 is suggested for best performance, stability and functionality with this version of Nextcloud.
NOOP
The database is used for transactional file locking. To enhance performance, please configure memcache, if available. For more details see the documentation ↗.
Your installation has no default phone region set. This is required to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add "default_phone_region" with the respective ISO 3166-1 code of the region to your config file. For more details see the documentation ↗.
You have not set or verified your email server configuration, yet. Please head over to the "Basic settings" in order to set them. Afterwards, use the "Send email" button below the form to verify your settings. For more details see the documentation ↗.
* disable dashboad

View file

@ -0,0 +1,8 @@
[program:apache2]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=apache2-foreground

View file

@ -0,0 +1,33 @@
[program:nextcloud-background-worker]
; Root directory of your Nextcloud instance
directory=/var/www/nextcloud
; Exact command to run
command=/usr/bin/local/php occ background-job:worker -v -t 60 "OC\\TaskProcessing\\SynchronousBackgroundJob"
; Run directly as the www-data user
user=www-data
; Automatic start and restart
autostart=true ; start as soon as supervisord starts
autorestart=true ; always restart
startsecs=10 ; 10 seconds after supervisord starts
startretries=3 ; 3 attempts before considering it “failed”
; Proper signal handling (useful if the worker spawns children)
stopasgroup=true
killasgroup=true
; Start multiple instances
numprocs=3
; Dedicated logs for easier troubleshooting
; stdout_logfile=/var/log/supervisor/nextcloud-worker.out.log
; stderr_logfile=/var/log/supervisor/nextcloud-worker.err.log
; stdout_logfile_maxbytes=5MB
; stderr_logfile_maxbytes=5MB
; stdout_logfile_backups=3
; stderr_logfile_backups=3
; (optional) Additional environment variables
; environment=PATH="/usr/local/bin:/usr/bin:/bin"

View file

@ -0,0 +1,8 @@
[program:cron]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=/cron.sh

View file

@ -7,16 +7,3 @@ logfile_maxbytes=50MB ; maximum size of logfile before
logfile_backups=10 ; number of backed up logfiles logfile_backups=10 ; number of backed up logfiles
loglevel=error loglevel=error
[program:apache2]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=apache2-foreground
[program:cron]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=/cron.sh