Skip to content
Snippets Groups Projects
Commit f547801c authored by Timothee Gosselin's avatar Timothee Gosselin
Browse files

fix: use default php-fpm conf & custom workers conf

parent 9061a865
No related branches found
No related tags found
No related merge requests found
Pipeline #1606 passed with stages
in 5 minutes and 15 seconds
...@@ -13,7 +13,7 @@ ENV VISIO_URL=https://meet.liiib.re ...@@ -13,7 +13,7 @@ ENV VISIO_URL=https://meet.liiib.re
RUN apk add --no-cache patch jq RUN apk add --no-cache patch jq
COPY redis.ini /usr/local/etc/php/conf.d/ COPY redis.ini /usr/local/etc/php/conf.d/
COPY opcache-recommended.ini /usr/local/etc/php/conf.d/opcache.ini COPY opcache-recommended.ini /usr/local/etc/php/conf.d/opcache.ini
COPY php-fpm.conf /usr/local/etc/php-fpm.conf COPY workers.conf /usr/local/etc/php-fpm.d/workers.conf
COPY --chown=www-data:root ./runtime /runtime COPY --chown=www-data:root ./runtime /runtime
COPY --chown=www-data:root config/* /usr/src/nextcloud/config/ COPY --chown=www-data:root config/* /usr/src/nextcloud/config/
COPY --from=apps --chown=www-data:root /apps/* /usr/src/nextcloud/apps/ COPY --from=apps --chown=www-data:root /apps/* /usr/src/nextcloud/apps/
......
; This file was initially adapated from the output of: (on PHP 5.6)
; grep -vE '^;|^ *$' /usr/local/etc/php-fpm.conf.default
[global]
error_log = /proc/self/fd/2
daemonize = no
log_limit = 8192
[www]
; if we send this to /proc/self/fd/1, it never appears
; Ensure worker stdout and stderr are sent to the main error log.
access.log = /proc/self/fd/2
user = www-data
group = www-data
listen = [::]:9000
pm = dynamic
pm.max_children = 100
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.status_path = /status
clear_env = no
catch_workers_output = yes
decorate_workers_output = no
[www]
pm = dynamic
pm.max_children = 100
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.status_path = /status
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment