mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-11 18:56:23 +00:00
66 lines
1.9 KiB
Plaintext
66 lines
1.9 KiB
Plaintext
# -*- coding: utf-8 -*-
|
|
"""
|
|
Example local configuration file for ivatar
|
|
Copy this to config_local.py and customize for your environment
|
|
"""
|
|
|
|
import os
|
|
|
|
# Override logs directory for production deployments
|
|
# LOGS_DIR = "/var/log/ivatar"
|
|
|
|
# Override logs directory for development with custom location
|
|
# LOGS_DIR = os.path.join(os.path.expanduser("~"), "ivatar_logs")
|
|
|
|
# File upload security settings
|
|
# ENABLE_FILE_SECURITY_VALIDATION = True
|
|
# ENABLE_EXIF_SANITIZATION = True
|
|
# ENABLE_MALICIOUS_CONTENT_SCAN = True
|
|
|
|
# Example production overrides:
|
|
# DEBUG = False
|
|
# SECRET_KEY = "your-production-secret-key-here"
|
|
# ALLOWED_HOSTS = ["yourdomain.com", "www.yourdomain.com"]
|
|
|
|
# Database configuration (if not using environment variables)
|
|
# DATABASES = {
|
|
# 'default': {
|
|
# 'ENGINE': 'django.db.backends.postgresql',
|
|
# 'NAME': 'ivatar_prod',
|
|
# 'USER': 'ivatar_user',
|
|
# 'PASSWORD': 'your-db-password',
|
|
# 'HOST': 'localhost',
|
|
# 'PORT': '5432',
|
|
# }
|
|
# }
|
|
|
|
# Email configuration
|
|
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
|
# EMAIL_HOST = 'smtp.yourdomain.com'
|
|
# EMAIL_PORT = 587
|
|
# EMAIL_USE_TLS = True
|
|
# EMAIL_HOST_USER = 'noreply@yourdomain.com'
|
|
# EMAIL_HOST_PASSWORD = 'your-email-password'
|
|
|
|
# Example: Override logs directory for production
|
|
# LOGS_DIR = "/var/log/ivatar"
|
|
|
|
# Bluesky integration credentials
|
|
# BLUESKY_IDENTIFIER = "your-bluesky-handle"
|
|
# BLUESKY_APP_PASSWORD = "your-app-password"
|
|
|
|
# Gravatar proxy and redirect settings
|
|
# These control the default behavior when no local avatar is found
|
|
# URL parameters (?gravatarproxy=n&gravatarredirect=y) will override these defaults
|
|
|
|
# For private/local instances that should not make external requests:
|
|
# DEFAULT_GRAVATARPROXY = False
|
|
# DEFAULT_GRAVATARREDIRECT = False
|
|
|
|
# For instances that prefer direct Gravatar redirects:
|
|
# DEFAULT_GRAVATARREDIRECT = True
|
|
# DEFAULT_GRAVATARPROXY = False
|
|
|
|
# For testing/development (always use default avatars):
|
|
# FORCEDEFAULT = True
|