stash
This commit is contained in:
parent
419893d93d
commit
b51d3d05f4
3 changed files with 94 additions and 17 deletions
|
|
@ -158,6 +158,14 @@ STATIC_URL = '/static/'
|
|||
MEDIA_ROOT = os.environ.get('TOOLSHED_USERFILES_PATH', 'userfiles')
|
||||
MEDIA_URL = '/media/'
|
||||
|
||||
# In prod, nginx (running as www-data) reads these files directly - see
|
||||
# SERVE_X_ACCEL_REDIRECT and playbook.yml's `location /redirect_media/`.
|
||||
# Pinned explicitly rather than left to the backend process's ambient umask,
|
||||
# so group-read (www-data is added to the backend's system group) is
|
||||
# guaranteed regardless of how the container is started.
|
||||
FILE_UPLOAD_PERMISSIONS = 0o640
|
||||
FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o750
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue