Initial commit: DashCaddy v1.0
Full codebase including API server (32 modules + routes), dashboard frontend, DashCA certificate distribution, installer script, and deployment skills.
This commit is contained in:
23
dashcaddy-installer/templates/Caddyfile.template
Normal file
23
dashcaddy-installer/templates/Caddyfile.template
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user