Create Caddyfile
Browse files
Caddyfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
:{$PORT}
|
2 |
+
|
3 |
+
encode gzip
|
4 |
+
|
5 |
+
@backend_routes path /_event/* /ping /_upload /_upload/*
|
6 |
+
handle @backend_routes {
|
7 |
+
reverse_proxy localhost:8000
|
8 |
+
}
|
9 |
+
|
10 |
+
root * /srv
|
11 |
+
route {
|
12 |
+
try_files {path} {path}/ /404.html
|
13 |
+
file_server
|
14 |
+
}
|