Skip to content

Commit 20bac7e

Browse files
committed
Fix permissions for Caddyfile-upload.json
1 parent 52de46c commit 20bac7e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
http_port 8080
3+
https_port 8443
4+
order upload before file_server
5+
log {
6+
level DEBUG
7+
}
8+
}
9+
10+
https://localhost:8443 {
11+
root .
12+
13+
file_server browse
14+
templates
15+
16+
basicauth {
17+
# asdf1234
18+
bob JDJhJDE0JFZTbnlLL0hzUlNoSkU2UXFnNlJlTU9uRmhyU1piclhTWGdreDN6V1BKUE1Zc2UyUHgzLmRL
19+
}
20+
21+
@mypost method POST
22+
upload @mypost {
23+
dest_dir tmp-upl
24+
max_form_buffer 100MB
25+
max_filesize 4MB
26+
response_template templates/upload-resp-template.txt
27+
}
28+
29+
log {
30+
output file access.log
31+
}
32+
}
33+

0 commit comments

Comments
 (0)