Fixed bugs in nginx.conf-template
This commit is contained in:
parent
65d581770e
commit
9001728772
1 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ http {
|
||||||
|
|
||||||
location /assets {
|
location /assets {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
add_header Cache-Control public
|
add_header Cache-Control public;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
@ -114,7 +114,7 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
<% unless @s3_bucket.blank? || @s3_path.blank? %>
|
<% unless @s3_bucket.blank? || @s3_path.blank? %>
|
||||||
<%= "rewrite ^/uploads/images/(.*)$ #{@s3_bucket}#{@s3_path}$1 permanent; %>
|
<%= "rewrite ^/uploads/images/(.*)$ #{@s3_bucket}#{@s3_path}$1 permanent;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue