Commit d326cffd authored by Marina Kosolap's avatar Marina Kosolap
Browse files

Update nginx.conf

parent cae5ac1b
Branches
2 merge requests!16Main,!15Main
Showing with 16 additions and 2 deletions
events {
worker_connections 1024;
}
......@@ -12,6 +11,10 @@ http {
server assistant_grafana:3000;
}
upstream flask_backend {
server assistant_flask:5000;
}
server {
listen 80;
server_name grafana.sberlab.nsu.ru;
......@@ -40,5 +43,16 @@ http {
proxy_redirect off;
}
location /webhook {
proxy_pass http://flask_backend;
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;
proxy_redirect off;
}
}
}
\ No newline at end of file
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment