We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52de46c commit 20bac7eCopy full SHA for 20bac7e
docker-files/opt/webroot/config/Caddyfile-basicauth
@@ -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
30
+ output file access.log
31
32
33
0 commit comments