diff options
author | Felipe Reyes <freyes@tty.cl> | 2013-12-26 16:57:08 -0300 |
---|---|---|
committer | Felipe Reyes <freyes@tty.cl> | 2013-12-26 17:24:07 -0300 |
commit | ed1fed8d5cef752603ee469d2a093bd9218488ea (patch) | |
tree | a99d82df39400be80ad436be2312ad92f1557066 /templates | |
parent | de7c5b770adba8e6846a57f8f538617593234d8d (diff) |
Expose user/group config to configure gunicorn
gunicorn setup was forcing users to run their processes with the user www-data
which isn't available in all distributions (for instance Fedora Linux) and
it's a good practice to run each website under different users to reduce
security issues
Diffstat (limited to 'templates')
-rw-r--r-- | templates/gunicorn.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/gunicorn.erb b/templates/gunicorn.erb index 99481e7..10f81fa 100644 --- a/templates/gunicorn.erb +++ b/templates/gunicorn.erb @@ -13,8 +13,8 @@ CONFIG = { }, <% end -%> 'working_dir': '<%= @dir %>', - 'user': 'www-data', - 'group': 'www-data', + 'user': '<%= @owner %>', + 'group': '<%= @group %>', <% if @virtualenv -%> 'python': '<%= @virtualenv %>/bin/python', <% else -%> |