mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 22:03:59 +00:00
Update storage configuration and .gitignore
- Switch from AWS S3 to local file storage - Add .env.example to .gitignore - Remove AWS-related configuration in settings.py
This commit is contained in:
@ -259,15 +259,10 @@ DJANGORESIZED_DEFAULT_FORMAT_EXTENSIONS = {"JPEG": ".jpg"}
|
||||
DJANGORESIZED_DEFAULT_NORMALIZE_ROTATION = True
|
||||
|
||||
|
||||
AWS_ACCESS_KEY_ID = config("AWS_ACCESS_KEY_ID")
|
||||
AWS_SECRET_ACCESS_KEY = config("AWS_ACCESS_SECRET")
|
||||
AWS_STORAGE_BUCKET_NAME = config("AWS_BUCKET")
|
||||
AWS_S3_FILE_OVERWRITE = False
|
||||
AWS_DEFAULT_ACL = None
|
||||
DEFAULT_FILE_STORAGE = "storages.backends.s3.S3Storage"
|
||||
DEFAULT_FILE_STORAGE = "django.core.files.storage.FileSystemStorage"
|
||||
STORAGES = {
|
||||
"default": {
|
||||
"BACKEND": "storages.backends.s3.S3Storage",
|
||||
"BACKEND": "django.core.files.storage.FileSystemStorage",
|
||||
},
|
||||
"staticfiles": {
|
||||
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
|
||||
|
Reference in New Issue
Block a user