templates/nginx.conf.erb in capistrano3-nginx-3.0.1 vs templates/nginx.conf.erb in capistrano3-nginx-3.0.2
- old
+ new
@@ -52,9 +52,14 @@
location /500.html { root <%= fetch (:deploy_to) %>/current/<%= fetch(:nginx_static_dir) %>; }
client_max_body_size 4G;
keepalive_timeout 10;
+<% if fetch(:nginx_auth_basic_user_file) %>
+ auth_basic "Restricted Area";
+ auth_basic_user_file <%= fetch(:nginx_auth_basic_user_file) %>;
+<% end %>
+
<% if fetch(:app_server) && (fetch(:app_server_socket) || fetch(:app_server_port))%>
location ^~ /assets/ {
gzip_static on;
expires max;
add_header Cache-Control public;