IMO you *never* want to use 777. Use user or group id of the socket file 
to control whether nginx can write to it.

On Wed, 24 Apr 2019, �~Xл�~L�~O Ра�~A�~Aадин wrote:

> Hi!
> 
> I want to run my mojo app with hypnotoad listening on unix socket. conf file
> looks like this
> 
> {
> 
>      ...
> 
>     hypnotoad => {
>         listen  => ['http+unix://%2Ftmp%2Fmy_app.sock'],
>         workers => 2,
>         proxy => 1,
>     },
> 
> }
> 
> And then file /tmp/my_app.sock has 755 rights (according to user umask).
> 
> But I need to change it to 777 to allow nginx to write queries to socket.
> 
> Is there a proper recommended way to achieve that goal?
> 
> --
> 
> Best Regards, Ilya 'elcamlost' Rassadin.
> 
> 

Reply via email to