Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
feat(webserver): server_tokens off on Nginx (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
interu authored and ajgon committed Jul 17, 2017
1 parent 43210bc commit 5568f6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/default/appserver.nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>;
Expand Down Expand Up @@ -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' %>;
Expand Down

0 comments on commit 5568f6c

Please sign in to comment.