summarylogtreecommitdiffstats
path: root/nextcloud.uwsgi
blob: ede8147b27e146666d12324097ccfc41f96c16d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[uwsgi]
procname-master = %n
# change to php to use latest PHP
plugins = php_legacy
master = true
socket = /run/%n/%n.sock
# uncomment for a stats socket, that can be used with uwsgitop
# stats = /run/%n/%n-stats.sock
uid = nextcloud
gid = nextcloud
processes = 10
cheaper = 4
cheaper-step = 1
idle = 600
die-on-idle = true

; reload whenever this config file changes
touch-reload = %p

cloud_data_dir = /var/lib/nextcloud/data
cloud_writable_apps_dir = /var/lib/nextcloud/apps
php_modules_dir = /usr/lib/php-legacy/modules
chdir = %(cloud_data_dir)

php-allowed-ext = .php
php-docroot = /usr/share/webapps/%n
php-index = index.php
php-set = date.timezone=Europe/Berlin
php-set = open_basedir=%(cloud_data_dir):%(cloud_writable_apps_dir):/var/lib/%n:/tmp/:/usr/share/webapps/%n:/etc/webapps/%n:/dev/urandom:%(php_modules_dir):/run/redis/redis.sock:/var/log/%n/%n.log:/proc/meminfo
php-set = session.save_path=/tmp
php-set = session.gc_maxlifetime  21600
php-set = session.gc_divisor  500
php-set = session.gc_probability  1
php-set = post_max_size=1000M
php-set = upload_max_filesize=1000M
php-set = always_populate_raw_post_data=-1
php-set = max_input_time=120
php-set = max_execution_time=60
php-set = memory_limit=768M
php-set = zend_extension=opcache
php-set = opcache.enable=1
php-set = opcache.enable_cli=1
php-set = opcache.interned_strings_buffer=8
php-set = opcache.max_accelerated_files=10000
php-set = opcache.memory_consumption=128
php-set = opcache.save_comments=1
php-set = opcache.revalidate_freq=1

# uncomment if php-apcu is installed and used
# php-set = extension=apcu
php-set = extension=bcmath
php-set = extension=bz2
php-set = extension=curl
php-set = extension=exif
php-set = extension=ftp
php-set = extension=gd
php-set = extension=gmp
# uncomment if php-imagick is installed and used
# php-set = extension=imagick
php-set = extension=intl
php-set = extension=iconv
php-set = extension=ldap
# uncomment if php-memcached is installed and used
# php-set = extension=memcached
php-set = extension=pdo_mysql
# uncomment if php-pgsql is installed and used
# php-set = extension=pdo_pgsql
php-set = extension=pdo_sqlite
# uncomment if php-igbinary is installed and used
# php-set = extension=igbinary
# uncomment if php-redis is installed and used (requires php-igbinary)
# php-set = extension=redis
php-set = extension=sockets
php-set = extension=sysvsem
# uncomment if php-xsl is installed and used
# php-set = extension=xsl
php-set = extension=zip

# change the URL to your own address and uncomment to run a webcron job every five minutes
# cron = -5 -1 -1 -1 -1 curl --silent https://change.me.tld/cron.php 1>/dev/null

# uncomment to run a cron job every five minutes
# cron = -5 -1 -1 -1 -1 php-legacy -f /usr/share/webapps/%n/cron.php