I am running Nginx, Gunicorn with Supervisord. After Supervisord starts it creates gunicorn.sock file with user and group my_user:my_user. I need Nginx to be able to connect to the socket file gunicorn.sock is there any proper method to set socket file user and group to my_user:nginx?
I have tried to set this settings bellow to [myprogram:program] but it does not work:
socket_owner=my_user:nginx
chown=my_user:nginx
My supervisord.conf program:
[myprogram:program]
command = /var/www/project/virtual_env/bin/gunicorn -k gevent --worker-connections 1001 --bind=unix:gunicorn.sock -m 007 wsgi:application
directory = /var/www/project/
autostart=true
autorestart=unexpected