librechat / Caddyfile
martynka's picture
Update Caddyfile
6a2d501 verified
raw
history blame
752 Bytes
{
admin off
auto_https off
}
:7860 {
# Sudo API endpoints
handle_path /sudo/* {
reverse_proxy localhost:5000 {
header_up Host {host}
header_up X-Forwarded-Host {host}
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote}
}
}
# Redirect /sudo-panel to /sudo-panel/
redir /sudo-panel /sudo-panel/
# Sudo panel static files
handle_path /sudo-panel/* {
root * /app/sudo
file_server
}
# Main LibreChat frontend
handle {
reverse_proxy localhost:3080 {
header_up Host {host}
header_up X-Forwarded-Host {host}
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote}
}
}