fix settings+unpushed a secret

This commit is contained in:
Max Młynarczyk 2025-06-25 02:01:08 -07:00
parent 8b0a82e9f6
commit 626fb2f83c
2 changed files with 3 additions and 6 deletions

View file

@ -60,6 +60,7 @@ EMAIL_USE_TLS=True
EMAIL_HOST_USER=your_email@example.com
EMAIL_HOST_PASSWORD=your_email_password
DEFAULT_FROM_EMAIL=webmaster@localhost
REGISTRATION_SALT=randomstring
```
- For push notifications, place your Firebase service account JSON as `fcm_secret.json` in the project root.

View file

@ -32,6 +32,7 @@ SECRET_KEY = os.getenv('SECRET_KEY')
FCM_SERVICE_ACCOUNT = str(BASE_DIR / "fcm_secret.json")
# SECURITY WARNING: don't run with debug turned on in production!
# probably will get rid of this soon but since no one uses this besides HC'ers im fine
DEBUG = True
@ -65,11 +66,6 @@ RECAPTCHA_PUBLIC_KEY = os.getenv('RECAPTCHA_PUBLIC_KEY')
RECAPTCHA_PRIVATE_KEY = os.getenv('RECAPTCHA_PRIVATE_KEY')
RECAPTCHA_USE_SSL = True
WEBPUSH_SETTINGS = {
"VAPID_PUBLIC_KEY": "BArtoQuGwO4z_wyCZJ6cZpkCJVuEHt-YeiHtocH6cTmPNUHL8657te2gXhEiXjjfNMy0igo1PxrSGFokdOokzfA",
"VAPID_PRIVATE_KEY": "6L3Sgw-co-X2kuKTIkZAMxXYuhi0F3dcCFwE6VdknOI",
"VAPID_ADMIN_EMAIL": "mmax3163@gmail.com"
}
CACHES = {
'default': {
@ -191,7 +187,7 @@ LOGIN_URL = '/accounts/login/'
# Registration settings
ACCOUNT_ACTIVATION_DAYS = 7 # One-week activation window
REGISTRATION_OPEN = True
REGISTRATION_SALT = 'registration'
REGISTRATION_SALT = os.getenv('REGISTRATION_SALT', 'registration')
MEDIA_URL = '/files/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'files')