Using a flask app with nginx and uswig to send OSC commands to a PD patch - jsut the very first steps.
sudo tail /var/log/nginx/error.log:
gives:
2021/07/29 16:04:22 [crit] 3737#3737: *4 connect() to unix:/home/pi/flask/hvc2/flasktest.sock failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: hvc.berlin, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/home/pi/flask/hvc2/flasktest.sock:", host: "127.0.0.1"
sudo chown www-data:www-data flasktest.sock
And added to service:
PrivateTmp=true
-
add the relevant user to the www-data group
-
add to the flask ini:
chown-socket = pi:www-data