1# Replace with your actual domain name
2# For local development, you can use localhost
3:80 {
4 # Redirect to HTTPS
5 redir https://{host}{uri} permanent
6}
7
8# Main application
9:443 {
10 # Automatic HTTPS with self-signed cert (for localhost)
11 # For production, replace with your domain and Caddy will get a Let's Encrypt cert
12 # Example: myaur.example.com
13
14 # Reverse proxy to myaur application
15 reverse_proxy localhost:8080
16
17 # Enable logging
18 log {
19 output file /var/log/caddy/access.log
20 }
21}
22
23# Metrics endpoint (optional - uncomment if you want metrics exposed)
24# :8081 {
25# reverse_proxy localhost:8081
26# }