Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 09:06:02 +08:00
commit 02cab85880
53 changed files with 12367 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# PocketBase Caddy Configuration
# This provides automatic HTTPS and reverse proxy
yourdomain.com {
# Redirect HTTP to HTTPS
redir https://{host}{uri} permanent
# Proxy to PocketBase
reverse_proxy pocketbase:8090
# Enable gzip compression
encode gzip
# Set security headers
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection "1; mode=block"
Strict-Transport-Security "max-age=31536000; includeSubDomains"
}
}
# For development (HTTP only)
localhost {
reverse_proxy pocketbase:8090
encode gzip
}