frennkie / django-ip2tor

Django Lightning Enabled Shop
19 stars 6 forks source link

Running celery with user celery or web?! #6

Closed frennkie closed 4 years ago

frennkie commented 4 years ago

For now I'm using celery as the user for the celery worker (and celery beat).

Access to disk (e.g. sqlitedb) is there made from both the celery user and the web user (www-data or nginx).

This also applies to the QR codes:

$ ls -l /var/www/sites/site_django_ip2tor/media/invoices/2020/07/*
-rw-r--r-- 1 celery celery 2393 Jul  5 14:37 qr_tmpsssweu18.png

I assume that the web user will not be able to delete these.

frennkie commented 4 years ago

Now running all services with ip2tor user.