initial devcontainer setup

This commit is contained in:
Jeff Clement 2025-07-18 23:12:35 +00:00
commit b9b7aa6a08
Signed by: jeff
GPG key ID: 3BCB43A3F0E1D7DA
14 changed files with 411 additions and 0 deletions

24
.devcontainer/Caddyfile Normal file
View file

@ -0,0 +1,24 @@
{
# Disable the Caddy admin API for security
admin off
}
# Main site block, listens on port 8001
:5001 {
# Custom error handling for 502 Bad Gateway
handle_errors 502 {
root * /data # Serve files from /data
rewrite * /offline.html # Rewrite all requests to offline.html
templates # Enable template processing
file_server # Serve static files
}
# Route for database web UI
route /dev/db/* {
uri strip_prefix /dev/db # Remove /dev/db prefix
reverse_proxy 127.0.0.1:8081 # Proxy to DB UI on port 8081
}
# Default route: proxy all other requests to main app
route /* {
reverse_proxy 127.0.0.1:4000 # Proxy to main app
}
}