signoz/deploy/docker/common/nginx-config.conf

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2021-01-16 12:18:54 +05:30
server {
listen 3301;
2021-01-16 12:18:54 +05:30
server_name _;
2021-06-01 16:45:45 +05:30
gzip on;
gzip_static on;
2021-06-01 16:45:45 +05:30
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_proxied any;
gzip_vary on;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
2021-06-01 16:45:45 +05:30
# to handle uri issue 414 from nginx
client_max_body_size 24M;
large_client_header_buffers 8 128k;
2021-01-16 12:18:54 +05:30
location / {
if ( $uri = '/index.html' ) {
add_header Cache-Control no-store always;
}
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
2021-01-16 12:18:54 +05:30
}
location /api/alertmanager {
proxy_pass http://alertmanager:9093/api/v2;
}
2021-01-16 12:18:54 +05:30
location /api {
proxy_pass http://query-service:8080/api;
2021-01-16 12:18:54 +05:30
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
2021-01-16 12:18:54 +05:30
}
}