On Jan 20, 2014, at 14:52 , Anatoly Mikhailov wrote:
? ????? ?????? - ???????? ??????????? Jira ? 10 ??????????????,
??????????, ??? ?????????? ???????? ??? ????? ????????.
? ??? ??, ??? ??? ???????? ???????, ??????????????? ???????
http {
proxy_cache_path /path/to/cache keys_zone=CACHE:20M;
proxy_temp_path /path/to/temp;
server {
location /static/ {
proxy_pass
http://backend;
proxy_cache CACHE;
proxy_cache_valid 1h;
}
}
}
?????, ???????, ???????? ??????, ?? ???????? ?? ??????????? ???????:
proxy_cache_path /.../nginx/cache levels=1:2 keys_zone=STATIC:20M;
proxy_temp_path /.../nginx/tmp;
server {
listen 8000;
location /jira {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_redirect off;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
}
location /jira/s/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_redirect off;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
proxy_ignore_headers "Set-Cookie";