Skip to content

Commit c8c4ee2

Browse files
authored
Merge pull request #64496 from nextcloud/fix/frankenphp-caddyfile-site-address
feat(frankenphp): Make host name configurable
2 parents d4d99e9 + c407c88 commit c8c4ee2

1 file changed

Lines changed: 33 additions & 13 deletions

File tree

Caddyfile

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,54 @@
66
{
77
metrics
88
frankenphp {
9-
num_threads 192
10-
max_threads 256
11-
# max_requests 500
12-
}
13-
}
9+
max_threads auto
10+
max_requests 100
1411

15-
localhost {
16-
php_server {
1712
worker {
1813
file index.php
19-
num 32
20-
watch
14+
watch lib/**/*.php
15+
watch config/**/*.php
16+
watch apps/**/*.php
17+
watch apps-*/**/*.php
18+
watch core/**/*.php
19+
watch 3rdparty/**/*.php
20+
watch *.php
21+
2122
match /index.php/*
23+
max_consecutive_failures -1
2224
}
2325
worker {
2426
file remote.php
25-
num 32
26-
watch
2727
match /remote.php/*
28+
watch lib/**/*.php
29+
watch config/**/*.php
30+
watch apps/**/*.php
31+
watch apps-*/**/*.php
32+
watch core/**/*.php
33+
watch 3rdparty/**/*.php
34+
watch *.php
35+
max_consecutive_failures -1
2836
}
2937
worker {
3038
file ocs/v1.php
31-
num 32
32-
watch
3339
match /ocs/v1.php/*
3440
match /ocs/v2.php/*
41+
watch lib/**/*.php
42+
watch config/**/*.php
43+
watch apps/**/*.php
44+
watch apps-*/**/*.php
45+
watch core/**/*.php
46+
watch 3rdparty/**/*.php
47+
watch *.php
48+
max_consecutive_failures -1
3549
}
3650
}
51+
}
52+
53+
{$SERVER_NAME:localhost} {
54+
php_server {
55+
56+
}
3757

3858
log {
3959
level ERROR

0 commit comments

Comments
 (0)