<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 20, 2014, at 15:27 , Anatoly Mikhailov wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 20 Jan 2014, at 11:02, Igor Sysoev <<a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On Jan 20, 2014, at 14:52 , Anatoly Mikhailov wrote:<br><br><blockquote type="cite">в нашем случае - локально настроенная Jira с 10 пользователями,<br>сомневаюсь, что приложение загнется при такой нагрузке.<br><br>и все же, кто как кэширует статику, сгенерированную налету?<br></blockquote><br>http {<br>   proxy_cache_path  /path/to/cache  keys_zone=CACHE:20M;<br>   proxy_temp_path   /path/to/temp;<br><br>   server {<br>       location /static/ {<br>           proxy_pass   <a href="http://backend/">http://backend</a>;<br>           proxy_cache  CACHE;<br>           proxy_cache_valid  1h;<br>       }<br>   }<br>}<br></div></blockquote><div><br></div>Игорь, спасибо, проблема решена, но возможно не оптимальным образом:</div><div><div><br></div><div><div>  proxy_cache_path      /.../nginx/cache levels=1:2 keys_zone=STATIC:20M;</div><div>  proxy_temp_path       /.../nginx/tmp;</div></div><div><br></div><div>  server {</div><div>    listen        8000;</div><div><br></div><div>    location /jira {</div><div>      proxy_pass            <a href="http://jira_upstream/jira">http://jira_upstream/jira</a>;</div><div>      proxy_set_header      Host $host;</div><div>      proxy_set_header      X-Real-IP $remote_addr;</div><div>      proxy_set_header      X-Forwarded-for $remote_addr;</div><div>      proxy_redirect        off;</div><div>      proxy_connect_timeout 120;</div><div>      proxy_send_timeout    120;</div><div>      proxy_read_timeout    180;</div><div>    }</div><div><br></div><div>    location /jira/s/ {</div><div>      proxy_pass            <a href="http://jira_upstream/jira/s/">http://jira_upstream/jira/s/</a>;</div><div>      proxy_set_header      Host $host;</div><div>      proxy_set_header      X-Real-IP $remote_addr;</div><div>      proxy_set_header      X-Forwarded-for $remote_addr;</div><div>      proxy_redirect        off;</div><div>      proxy_connect_timeout 120;</div><div>      proxy_send_timeout    120;</div><div>      proxy_read_timeout    180;</div><div><br></div><div>      proxy_ignore_headers "Set-Cookie";</div></div></div></blockquote><div><br></div><div>Ещё нужно</div><div>proxy_hide_header  Set-Cookie;</div><div>иначе клиенты будут получать чужие куки.</div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br class="Apple-interchange-newline">-- <br>Igor Sysoev<br></span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><a href="http://nginx.com">http://nginx.com</a></span></div></span></div></span></div></span></div></span></span></div><br><div></div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div>      proxy_cache          STATIC;</div><div>      proxy_cache_valid    60m;</div><div>    }</div></div><div><br></div><div><br></div><div>Анатолий</div></div></blockquote></div><br></body></html>