|
|
|
@@ -24,8 +24,8 @@ defaults |
|
|
|
option forwardfor |
|
|
|
option redispatch |
|
|
|
timeout connect 5000 |
|
|
|
timeout client 50000 |
|
|
|
timeout server 50000 |
|
|
|
timeout client 50000 |
|
|
|
timeout server 50000 |
|
|
|
errorfile 400 /etc/haproxy/errors/400.http |
|
|
|
errorfile 403 /etc/haproxy/errors/403.http |
|
|
|
errorfile 408 /etc/haproxy/errors/408.http |
|
|
|
@@ -71,11 +71,10 @@ backend matrix-federation |
|
|
|
backend nginx-static |
|
|
|
capture request header origin len 128 |
|
|
|
http-response add-header Access-Control-Allow-Origin * |
|
|
|
rspadd Access-Control-Allow-Methods:\ GET,\ HEAD,\ OPTIONS,\ POST,\ PUT if { capture.req.hdr(0) -m found } |
|
|
|
rspadd Access-Control-Allow-Credentials:\ true if { capture.req.hdr(0) -m found } |
|
|
|
rspadd Access-Control-Allow-Methods:\ GET,\ HEAD,\ OPTIONS,\ POST,\ PUT if { capture.req.hdr(0) -m found } |
|
|
|
rspadd Access-Control-Allow-Credentials:\ true if { capture.req.hdr(0) -m found } |
|
|
|
rspadd Access-Control-Allow-Headers:\ Origin,\ Accept,\ X-Requested-With,\ Content-Type,\ Access-Control-Request-Method,\ Access-Control-Request-Headers,\ Authorization if { capture.req.hdr(0) -m found } |
|
|
|
server nginx 127.0.0.1:40888 check |
|
|
|
|
|
|
|
backend element |
|
|
|
server element 127.0.0.1:8765 check |
|
|
|
|