1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Change umask examples to more permissive values

The existing umask examples default to no permissions at all, which
doesn't seem particularly useful to anybody. This changes the examples
to read/write, which should be a better baseline. [ci skip]
This commit is contained in:
Parker Selbert 2014-11-14 12:39:28 -06:00
parent c204a02ae5
commit 62585816ce
2 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ If you're preloading your application and using ActiveRecord, it's recommend you
ActiveRecord::Base.establish_connection
end
end
When you use preload_app, your new code goes all in the master process, and is then copied in the workers (meaning its only compatible with cluster mode). General rule is to use preload_app when your workers die often and need fast starts. If you dont have many workers, you probably should not use preload_app.
Note that preload_app cant be used with phased restart, since phased restart kills and restarts workers one-by-one, and preload_app is all about copying the code of master into the workers.
@ -133,7 +133,7 @@ Want to use UNIX Sockets instead of TCP (which can provide a 5-10% performance b
If you need to change the permissions of the UNIX socket, just add a umask parameter:
$ puma -b 'unix:///var/run/puma.sock?umask=0777'
$ puma -b 'unix:///var/run/puma.sock?umask=0111'
Need a bit of security? Use SSL sockets!

View file

@ -73,7 +73,7 @@
#
# bind 'tcp://0.0.0.0:9292'
# bind 'unix:///var/run/puma.sock'
# bind 'unix:///var/run/puma.sock?umask=0777'
# bind 'unix:///var/run/puma.sock?umask=0111'
# bind 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert'
# Instead of “bind 'ssl://127.0.0.1:9292?key=path_to_key&cert=path_to_cert'” you