This commit is contained in:
2026-09-05 21:15:34 +07:00
parent 23b23cca9a
commit 19d2a6dc9e
2 changed files with 161 additions and 0 deletions
+14
View File
@@ -5,6 +5,20 @@ garage-ui.yiem.cc {
# 2. Garage S3 API (Path-Style & Single Domain)
s3-api.yiem.cc {
# CORS: handle OPTIONS preflight
@options method OPTIONS {
header Access-Control-Request-Method *
}
handle @options {
respond * 204
}
# CORS headers on all responses
header {
Access-Control-Allow-Origin "*"
Access-Control-Allow-Methods "GET, PUT, POST, DELETE, OPTIONS"
Access-Control-Allow-Headers "*"
Access-Control-Max-Age "86400"
}
reverse_proxy 192.168.88.106:3900 {
header_up Host {host}
}