update
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user