Skip to content

Commit 650dc71

Browse files
committed
feat(franken): Refine watched files
Also: - Restart on failures - Move the worker config to the franken directive Signed-off-by: Louis Chmn <louis@chmn.me>
1 parent dd9263b commit 650dc71

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-
{$SERVER_NAME::localhost} {
16-
php_server {
1712
worker {
1813
file index.php
19-
num 32
20-
watch
14+
watch lib
15+
watch config
16+
watch apps
17+
watch apps-*
18+
watch core
19+
watch 3rdparty
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
29+
watch config
30+
watch apps
31+
watch apps-*
32+
watch core
33+
watch 3rdparty
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
42+
watch config
43+
watch apps
44+
watch apps-*
45+
watch core
46+
watch 3rdparty
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)