mirror of
https://github.com/quantum5/qlinks.git
synced 2025-08-02 22:08:14 -04:00
84 lines
2.8 KiB
Python
84 lines
2.8 KiB
Python
# This is the settings template. Copy this as local.py
|
|
from .base import * # noqa
|
|
|
|
SECRET_KEY = 'THIS IS INSECURE PLEASE CHANGE ME'
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = []
|
|
|
|
# Database
|
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': BASE_DIR / 'db.sqlite3',
|
|
}
|
|
}
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
|
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
|
STATIC_ROOT = '/srv/example'
|
|
# STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
|
|
|
|
# Email
|
|
# https://docs.djangoproject.com/en/4.0/topics/email/#email-backends
|
|
# The email all broken links notifications will come from, among other things.
|
|
# DEFAULT_FROM_EMAIL = 'qlinks@example.com'
|
|
|
|
# Emails that Django errors will come from.
|
|
# SERVER_EMAIL = 'qlinks@example.com'
|
|
|
|
# A tuple of (name, email) pairs that specifies those who will be mailed
|
|
# when the server experiences an error when DEBUG = False.
|
|
# ADMINS = (
|
|
# ('Your Name', 'your.email@example.com'),
|
|
# )
|
|
|
|
# The following block is included for your convenience, if you want to use Gmail.
|
|
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
|
# EMAIL_USE_TLS = True
|
|
# EMAIL_HOST = 'smtp.gmail.com'
|
|
# EMAIL_HOST_USER = '<your account>@gmail.com'
|
|
# EMAIL_HOST_PASSWORD = '<your password>'
|
|
# EMAIL_PORT = 587
|
|
|
|
# To use Mailgun, uncomment this block.
|
|
# You will need to run `pip install django-mailgun` for to get `MailgunBackend`.
|
|
# EMAIL_BACKEND = 'django_mailgun.MailgunBackend'
|
|
# MAILGUN_ACCESS_KEY = '<your Mailgun access key>'
|
|
# MAILGUN_SERVER_NAME = '<your Mailgun domain>'
|
|
|
|
# You can also use Sendgrid, with `pip install sendgrid-django`.
|
|
# EMAIL_BACKEND = 'sgbackend.SendGridBackend'
|
|
# SENDGRID_API_KEY = '<Your SendGrid API Key>'
|
|
|
|
# qlinks configuration
|
|
QLINKS_ADMIN_HOST = r'admin'
|
|
|
|
# Set to link prefix for short links, e.g. 'https://short.example.com/'
|
|
QLINKS_CANONICAL = None
|
|
|
|
# If you are using a CDN, you can optionally configure it to cache all the
|
|
# redirects, and then use a CDN cache backend to purge the cache.
|
|
# QLINKS_CDN_CACHE = 'qlinks.cdn_cache.cloudflare_cache.CloudflareCDNCache'
|
|
# QLINKS_CDN_CLOUDFLARE_API_TOKEN = ...
|
|
# QLINKS_CDN_CLOUDFLARE_API_ZONE_ID = ...
|
|
|
|
# Automatic link checking settings.
|
|
# Minimum and maximum time before next check.
|
|
# A time is randomly chosen to spread out the load.
|
|
# QLINKS_CHECK_MIN = timedelta(days=6)
|
|
# QLINKS_CHECK_MAX = timedelta(days=8)
|
|
|
|
# Minimum time in seconds between two consecutive checks.
|
|
# QLINKS_CHECK_THROTTLE = 1
|
|
|
|
# Enable emails.
|
|
# QLINKS_BROKEN_EMAIL = True
|
|
|
|
# Update the X-Powered-By header to point to your fork if you are not running
|
|
# upstream code. This is required to comply with AGPLv3.
|
|
# QLINKS_POWERED_BY = 'QLinks <https://github.com/YOU/qlinks>'
|