mirror of
https://github.com/grafana/grafana.git
synced 2024-12-25 08:21:46 -06:00
e894b19c1a
* build(webpack): set publicpath and process urls to resolve assets correctly
* build(webpack): add back --progress to build
* Add local cdn
(cherry picked from commit 7a19523fa4
)
* chore(devenv): fix local_cdn path in ngnix conf
* chore(codeowners): add frontend-ops as owners of local_cdn docker block
---------
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
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/11.4.0-pre/public(.*)$ $1 last;
|
|
}
|
|
}
|