Full codebase including API server (32 modules + routes), dashboard frontend, DashCA certificate distribution, installer script, and deployment skills.
24 lines
329 B
Caddyfile
24 lines
329 B
Caddyfile
# DashCaddy Caddyfile
|
|
# Generated by DashCaddy Installer
|
|
|
|
# Global options
|
|
{
|
|
admin localhost:2019
|
|
auto_https off
|
|
}
|
|
|
|
# Dashboard
|
|
:{{PORT}} {
|
|
root * {{DASHBOARD_PATH}}
|
|
file_server
|
|
encode gzip
|
|
|
|
# API proxy
|
|
handle /api/* {
|
|
reverse_proxy localhost:{{API_PORT}}
|
|
}
|
|
|
|
# SPA fallback
|
|
try_files {path} /index.html
|
|
}
|