Update HTML files to use Bunny.net CDN for static assets
- Updated all static asset URLs to use iceymi.b-cdn.net CDN - Changed favicon, CSS, and JS file references in index.html, admin.html, and privacy.html - API calls remain pointed to origin server for dynamic content - Ready for CDN deployment with proper cache separation
This commit is contained in:
parent
f73221e5cc
commit
d9559f71fe
15 changed files with 770 additions and 116 deletions
|
@ -1,5 +1,5 @@
|
|||
# ICE Watch Caddy Configuration
|
||||
# Replace yourdomain.com with your actual domain
|
||||
# Great Lakes Ice Report Caddy Configuration
|
||||
# Using subdomain on existing puremichigan.lol domain
|
||||
#
|
||||
# This configuration automatically:
|
||||
# - Obtains SSL certificates from Let's Encrypt
|
||||
|
@ -7,7 +7,7 @@
|
|||
# - Serves on ports 80 and 443
|
||||
|
||||
# Main site configuration
|
||||
yourdomain.com {
|
||||
ice.puremichigan.lol {
|
||||
# Automatic HTTPS (default behavior)
|
||||
# Caddy automatically:
|
||||
# - Listens on :80 and :443
|
||||
|
@ -22,7 +22,7 @@ yourdomain.com {
|
|||
health_timeout 5s
|
||||
}
|
||||
|
||||
# Security headers for ICE Watch
|
||||
# Security headers for Great Lakes Ice Report
|
||||
header {
|
||||
# Enable HSTS (force HTTPS for 1 year)
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
|
@ -43,7 +43,7 @@ yourdomain.com {
|
|||
|
||||
# Logging for monitoring
|
||||
log {
|
||||
output file /var/log/caddy/icewatch.log {
|
||||
output file /var/log/caddy/great-lakes-ice-report.log {
|
||||
roll_size 100MB
|
||||
roll_keep 5
|
||||
}
|
||||
|
@ -71,17 +71,17 @@ yourdomain.com {
|
|||
}
|
||||
}
|
||||
|
||||
# Redirect www to non-www (with HTTPS)
|
||||
www.yourdomain.com {
|
||||
redir https://yourdomain.com{uri} permanent
|
||||
# Redirect www subdomain (if someone tries it)
|
||||
www.ice.puremichigan.lol {
|
||||
redir https://ice.puremichigan.lol{uri} permanent
|
||||
}
|
||||
|
||||
# HTTP redirect (explicit, though Caddy does this automatically)
|
||||
# This is just for clarity
|
||||
http://yourdomain.com {
|
||||
redir https://yourdomain.com{uri} permanent
|
||||
http://ice.puremichigan.lol {
|
||||
redir https://ice.puremichigan.lol{uri} permanent
|
||||
}
|
||||
|
||||
http://www.yourdomain.com {
|
||||
redir https://yourdomain.com{uri} permanent
|
||||
http://www.ice.puremichigan.lol {
|
||||
redir https://ice.puremichigan.lol{uri} permanent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue