Updates
This commit is contained in:
@@ -553,43 +553,36 @@ data:
|
||||
'class': 'logging.StreamHandler',
|
||||
'formatter': 'verbose',
|
||||
},
|
||||
'file': {
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'filename': os.path.join(LOGS_DIR, 'django.log'),
|
||||
'maxBytes': 1024 * 1024 * 15, # 15MB
|
||||
'backupCount': 10,
|
||||
'formatter': 'verbose',
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
'django': {
|
||||
'handlers': ['console', 'file'],
|
||||
'handlers': ['console'],
|
||||
'level': os.environ.get('DJANGO_LOG_LEVEL', 'INFO'),
|
||||
'propagate': False,
|
||||
},
|
||||
'myapp': {
|
||||
'handlers': ['console', 'file'],
|
||||
'handlers': ['console'],
|
||||
'level': os.environ.get('DJANGO_LOG_LEVEL', 'INFO'),
|
||||
'propagate': False,
|
||||
},
|
||||
'storages': {
|
||||
'handlers': ['console', 'file'],
|
||||
'handlers': ['console'],
|
||||
'level': 'DEBUG' if DEBUG else 'INFO',
|
||||
'propagate': False,
|
||||
},
|
||||
'boto3': {
|
||||
'handlers': ['console', 'file'],
|
||||
'handlers': ['console'],
|
||||
'level': 'DEBUG' if DEBUG else 'INFO',
|
||||
'propagate': False,
|
||||
},
|
||||
'botocore': {
|
||||
'handlers': ['console', 'file'],
|
||||
'handlers': ['console'],
|
||||
'level': 'DEBUG' if DEBUG else 'INFO',
|
||||
'propagate': False,
|
||||
},
|
||||
},
|
||||
'root': {
|
||||
'handlers': ['console', 'file'],
|
||||
'handlers': ['console'],
|
||||
'level': 'INFO',
|
||||
},
|
||||
}
|
||||
@@ -650,7 +643,7 @@ data:
|
||||
|
||||
# Use virtual-hosted-style URLs (bucket-name.s3.region.amazonaws.com)
|
||||
# This is the default and recommended format
|
||||
AWS_S3_ADDRESSING_STYLE = 'virtual'
|
||||
AWS_S3_ADDRESSING_STYLE = 'path'
|
||||
|
||||
# Django 5.0+ STORAGES configuration
|
||||
STORAGES = {
|
||||
@@ -839,3 +832,4 @@ data:
|
||||
# Fix http callback issue in mozilla-django-oidc by forcing https; https://github.com/mozilla/mozilla-django-oidc/issues/417
|
||||
# OIDC should only be setup behind a TLS reverse proxy anyways
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user