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 %>
|
||||
}
|
||||
|
||||
upstream resque_web {
|
||||
server localhost:5678;
|
||||
}
|
||||
|
||||
server {
|
||||
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 {
|
||||
listen 80;
|
||||
server_name <%= @url %> www.<%= @url %>;
|
||||
|
|
@ -93,6 +72,11 @@ http {
|
|||
add_header Cache-Control public;
|
||||
}
|
||||
|
||||
location /uploads/images {
|
||||
expires 5d;
|
||||
add_header Cache-Control public;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
|
|||
Loading…
Reference in a new issue