Permalink
Browse files

feat(webserver): server_tokens off on Nginx (#91)

  • Loading branch information...
interu authored and ajgon committed Jul 17, 2017
1 parent 43210bc commit 5568f6ce713a443df9b059100489d9238493422c
Showing with 4 additions and 0 deletions.
  1. +4 −0 templates/default/appserver.nginx.conf.erb
@@ -10,6 +10,8 @@ server {
root <%= File.join(@deploy_dir, 'current', 'public') %>;
server_tokens off;
client_max_body_size <%= @out[:client_max_body_size] || '1m' %>;
client_body_timeout <%= @out[:client_body_timeout] || '12' %>;
client_header_timeout <%= @out[:client_header_timeout] || '12' %>;
@@ -103,6 +105,8 @@ server {
root <%= File.join(@deploy_dir, 'current', 'public') %>;
server_tokens off;
client_max_body_size <%= @out[:client_max_body_size] || '1m' %>;
client_body_timeout <%= @out[:client_body_timeout] || '12' %>;
client_header_timeout <%= @out[:client_header_timeout] || '12' %>;

0 comments on commit 5568f6c

Please sign in to comment.