Spaces:
Running
Running
Update Caddyfile
Browse files
Caddyfile
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
:7860 {
|
7 |
|
8 |
# Sudo API endpoints
|
9 |
-
|
10 |
reverse_proxy localhost:5000 {
|
11 |
header_up Host {host}
|
12 |
header_up X-Forwarded-Host {host}
|
@@ -15,13 +15,13 @@
|
|
15 |
}
|
16 |
}
|
17 |
|
18 |
-
|
19 |
-
handle {
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
25 |
}
|
26 |
}
|
27 |
-
}
|
|
|
6 |
:7860 {
|
7 |
|
8 |
# Sudo API endpoints
|
9 |
+
route /sudo/* {
|
10 |
reverse_proxy localhost:5000 {
|
11 |
header_up Host {host}
|
12 |
header_up X-Forwarded-Host {host}
|
|
|
15 |
}
|
16 |
}
|
17 |
|
18 |
+
# Main LibreChat frontend
|
19 |
+
handle {
|
20 |
+
reverse_proxy localhost:3080 {
|
21 |
+
header_up Host {host}
|
22 |
+
header_up X-Forwarded-Host {host}
|
23 |
+
header_up X-Forwarded-Proto {scheme}
|
24 |
+
header_up X-Real-IP {remote}
|
25 |
+
}
|
26 |
}
|
27 |
}
|
|