Skip to content

Commit

Permalink
use chmod-socket option in uwsgi so it can be overridden by a wrapper
Browse files Browse the repository at this point in the history
cookbook to allow access from the proxying web server
  • Loading branch information
andrewgoktepe authored and Aaron Baer committed Aug 7, 2015
1 parent 686cde2 commit 73481e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/uwsgi.rb
Expand Up @@ -18,6 +18,7 @@
#

default['graphite']['uwsgi']['socket'] = '/tmp/uwsgi.sock'
default['graphite']['uwsgi']['socket_permissions'] = '755'
default['graphite']['uwsgi']['workers'] = 8
default['graphite']['uwsgi']['carbon'] = '127.0.0.1:2003'
default['graphite']['uwsgi']['listen_http'] = false
Expand Down
1 change: 1 addition & 0 deletions templates/default/sv-graphite-web-run.erb
Expand Up @@ -11,6 +11,7 @@ exec uwsgi --processes <%= node['graphite']['uwsgi']['workers'] %> \
--pythonpath <%= node['graphite']['base_dir'] %>/webapp/graphite \
--wsgi-file <%= node['graphite']['base_dir'] %>/conf/graphite.wsgi.example \
--uid <%= node['graphite']['user'] %> --gid <%= node['graphite']['group'] %> \
--chmod-socket=<%= node['graphite']['uwsgi']['socket_permissions'] %> \
--no-orphans --master \
--procname graphite-web \
--die-on-term \
Expand Down

0 comments on commit 73481e6

Please sign in to comment.