-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Expand file tree
/
Copy pathCaddyfile
More file actions
104 lines (94 loc) · 1.86 KB
/
Copy pathCaddyfile
File metadata and controls
104 lines (94 loc) · 1.86 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# THIS IS AN EXPERIMENTAL FEATURE
# DO NOT USE THIS IN PRODUCTION, YOU HAVE BEEN WARNED.
{
metrics
frankenphp {
max_threads auto
max_requests 100
worker {
num 2
file index.php
watch lib/**/*.php
watch config/**/*.php
watch apps/**/*.php
watch apps-*/**/*.php
watch core/**/*.php
watch 3rdparty/**/*.php
watch *.php
match /index.php/*
max_consecutive_failures -1
}
worker {
num 2
file remote.php
match /remote.php/*
watch lib/**/*.php
watch config/**/*.php
watch apps/**/*.php
watch apps-*/**/*.php
watch core/**/*.php
watch 3rdparty/**/*.php
watch *.php
max_consecutive_failures -1
}
worker {
num 2
file ocs/v1.php
match /ocs/v1.php/*
match /ocs/v2.php/*
watch lib/**/*.php
watch config/**/*.php
watch apps/**/*.php
watch apps-*/**/*.php
watch core/**/*.php
watch 3rdparty/**/*.php
watch *.php
max_consecutive_failures -1
}
}
}
{$SERVER_NAME:localhost} {
php_server {
}
log {
level ERROR
output stderr
}
encode gzip
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
# Rule: Maps most RFC 8615 compliant well-known URIs to our main frontend controller (/index.php) by default
@wellKnown {
path "/.well-known/"
not {
path /.well-known/acme-challenge
path /.well-known/pki-validation
}
}
rewrite @wellKnown /index.php
rewrite /ocm-provider/ /index.php
@forbidden {
path /.htaccess
path /data/*
path /config/*
path /db_structure
path /.xml
path /README
path /3rdparty/*
path /lib/*
path /templates/*
path /occ
path /build
path /tests
path /console.php
path /autotest
path /issue
path /indi
path /db_
path /console
}
respond @forbidden 404
}