16 lines
605 B
Plaintext
16 lines
605 B
Plaintext
location /loki/ {
|
|
proxy_pass http://localhost:$LOKI_PORT/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
# CORS pour les requêtes depuis Grafana
|
|
add_header Access-Control-Allow-Origin *;
|
|
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
|
|
add_header Access-Control-Allow-Headers "Content-Type, Authorization";
|
|
|
|
if ($request_method = 'OPTIONS') {
|
|
return 204;
|
|
}
|