Merge pull request #2448 from dmorley/patch-6
remove resque, remove 404 images from bothering thin [ci skip]
This commit is contained in:
commit
31ef2d60f7
1 changed files with 5 additions and 21 deletions
|
|
@ -36,10 +36,6 @@ http {
|
||||||
<% end %>
|
<% end %>
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream resque_web {
|
|
||||||
server localhost:5678;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 843;
|
listen 843;
|
||||||
|
|
||||||
|
|
@ -55,23 +51,6 @@ http {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
|
||||||
listen 7894;
|
|
||||||
server_name <%= @url %> www.<%= @url %>;
|
|
||||||
|
|
||||||
auth_basic "Restricted";
|
|
||||||
auth_basic_user_file htpasswd;
|
|
||||||
|
|
||||||
ssl on;
|
|
||||||
ssl_certificate /usr/local/nginx/conf/diaspora.crt;
|
|
||||||
ssl_certificate_key /usr/local/nginx/conf/diaspora.key;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
proxy_pass http://resque_web;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name <%= @url %> www.<%= @url %>;
|
server_name <%= @url %> www.<%= @url %>;
|
||||||
|
|
@ -92,6 +71,11 @@ http {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
add_header Cache-Control public;
|
add_header Cache-Control public;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /uploads/images {
|
||||||
|
expires 5d;
|
||||||
|
add_header Cache-Control public;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue