mirror of https://github.com/grafana/grafana.git
25 lines
792 B
Plaintext
25 lines
792 B
Plaintext
server {
|
|
root /data;
|
|
autoindex on;
|
|
|
|
location / {
|
|
if ($request_method = 'OPTIONS') {
|
|
add_header 'Access-Control-Allow-Origin' '$http_origin' always;
|
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
|
add_header 'Access-Control-Allow-Headers' '*' always;
|
|
add_header 'Access-Control-Allow-Methods' '*';
|
|
# add_header 'Access-Control-Max-Age' 1728000;
|
|
add_header 'Content-Type' 'text/plain; charset=utf-8';
|
|
add_header 'Content-Length' 0;
|
|
return 204;
|
|
}
|
|
|
|
add_header 'Access-Control-Allow-Origin' '$http_origin' always;
|
|
add_header 'Access-Control-Allow-Methods' '*' always;
|
|
add_header 'Access-Control-Allow-Headers' '*' always;
|
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
|
|
|
rewrite ^/grafana-oss/12.1.0-pre/public(.*)$ $1 last;
|
|
}
|
|
}
|