Commit fe784d12 authored by Yuri Konotopov's avatar Yuri Konotopov

openshift: improve nginx configuration.

1. Do not log favicon.ico, robots.txt and /health requests.
2. Cache typical static files.
parent 9f1e2f05
......@@ -3,7 +3,6 @@ worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
......@@ -44,7 +43,24 @@ http {
add_header X-Frame-Options SAMEORIGIN;
add_header X-UA-Compatible IE=Edge;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(jpg|jpeg|gif|png|ico|css|pdf|txt|bmp|js)$ {
access_log off;
expires 3d;
}
location /health {
access_log off;
return 200 "alive";
}
......
Markdown is supported
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