91 lines
2.7 KiB
Python
91 lines
2.7 KiB
Python
"""
|
|
Django settings for dashboard project.
|
|
|
|
Generated by 'django-admin startproject' using Django 4.0.3.
|
|
|
|
For more information on this file, see
|
|
https://docs.djangoproject.com/en/4.0/topics/settings/
|
|
|
|
For the full list of settings and their values, see
|
|
https://docs.djangoproject.com/en/4.0/ref/settings/
|
|
"""
|
|
# Quick-start development settings - unsuitable for production
|
|
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
# A new SECRET_KEY can be generated by running the following command:
|
|
# openssl rand -hex 32
|
|
SECRET_KEY = "django-insecure-44zt@)$td7_yh(01q^hrce%h(311n!djn%%#s1b7$cvfy!pf7y"
|
|
|
|
# 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.postgresql",
|
|
"NAME": "postgres",
|
|
"USER": "postgres",
|
|
"PASSWORD": "password",
|
|
"HOST": "localhost",
|
|
"PORT": "5432",
|
|
}
|
|
}
|
|
|
|
## django-payments configuration
|
|
|
|
PAYMENT_HOST = "http://localhost:8000"
|
|
PAYMENT_VARIANTS = {
|
|
"stripe": (
|
|
"payments.stripe.StripeProvider", # please don't change this
|
|
{
|
|
"secret_key": "",
|
|
"public_key": "",
|
|
},
|
|
)
|
|
}
|
|
|
|
|
|
### Dashbaord specific configuration options
|
|
|
|
HOSTEA = {
|
|
"SOURCE_CODE": "https://gitea.hostea.org/Hostea/dashboard",
|
|
"INSTANCE_MAINTAINER_CONTACT": "contact@hostea.example.org",
|
|
"ACCOUNTS": {
|
|
"MAX_VERIFICATION_TOLERANCE_PERIOD": 60 * 60 * 24, # in seconds
|
|
"SUDO_TTL": 60 * 5,
|
|
},
|
|
"META": {
|
|
"GITEA_INSTANCE": "https://gitea.hostea.org", # meta Gitea insatnce
|
|
"GITEA_ORG_NAME": "Hostea", # Organisation name on Hostea meta instance
|
|
# Repository dedicated for handling support
|
|
# ref: https://gitea.hostea.org/Hostea/july-mvp/issues/17
|
|
"SUPPORT_REPOSITORY": "support",
|
|
},
|
|
"INFRA": {
|
|
"HOSTEA_REPO": {
|
|
# where to clone the repository
|
|
"PATH": "/srv/hostea/dashboard/infrastructure",
|
|
# Git remote URI of the repository
|
|
"REMOTE": "git@localhost:Hostea/enough.git",
|
|
# SSH key that can push to the Git repository remote mentioned above
|
|
"SSH_KEY": "/srv/hostea/deploy",
|
|
},
|
|
"HOSTEA_DOMAIN": "",
|
|
},
|
|
}
|
|
|
|
# Please see EMAIL_* configuration options:
|
|
# https://docs.djangoproject.com/en/4.1/ref/settings/#email-host
|
|
EMAIL_HOST = "localhost"
|
|
EMAIL_USE_TLS = False
|
|
EMAIL_USE_SSL = False
|
|
EMAIL_PORT = 10025
|
|
EMAIL_HOST_USER = "admin"
|
|
EMAIL_HOST_PASSWORD = "password"
|
|
DEFAULT_FROM_EMAIL = "no-reply@hostea.org"
|