dev_settings.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ALLOWED_HOSTS = ['adherents.arn-fai.net', 'adh.arn-fai.net', 'coin.local']
  2. URL_PREFIX = ''
  3. SITE_URL = "https://coin.local/"
  4. SECRET_KEY = 'OJ1kA7Q@TF=^U*uRKj&OCHaB3'
  5. ISP = {
  6. 'NAME': 'ARN',
  7. 'SITE': 'https://arn-fai.net',
  8. 'EMAIL': 'no@arn-fai.net',
  9. }
  10. SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  11. PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
  12. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  13. FEEDS = (('isp', 'https://arn-fai.net/rss.xml', 3),
  14. ('ffdn', 'http://www.ffdn.org/fr/rss.xml', 3))
  15. ACCOUNT_ACTIVATION_DAYS = 7
  16. REGISTRATION_OPEN = True
  17. MEMBER_DEFAULT_COTISATION = None
  18. MEMBER_CAN_EDIT_PROFILE = True
  19. EXTRA_INSTALLED_APPS = (
  20. 'vpn',
  21. 'vps',
  22. 'housing',
  23. 'hardware_provisioning',
  24. )
  25. # Allow user to edit their VPS Info
  26. MEMBER_CAN_EDIT_VPS_CONF = False
  27. # Allow user to edit their VPN Info
  28. MEMBER_CAN_EDIT_VPN_CONF = False
  29. LOGGING["formatters"]["verbose"] = {'format': "%(asctime)s - %(name)s - %(levelname)s - %(message)s"}
  30. LOGGING["handlers"]["coin_accounting"] = {
  31. 'level':'INFO',
  32. 'class':'logging.handlers.RotatingFileHandler',
  33. 'formatter': 'verbose',
  34. 'filename': '/var/log/coin/accounting.log',
  35. 'maxBytes': 1024*1024*15, # 15MB
  36. 'backupCount': 10,
  37. }
  38. LOGGING["handlers"]["coin_subnets"] = {
  39. 'level':'INFO',
  40. 'class':'logging.handlers.RotatingFileHandler',
  41. 'formatter': 'verbose',
  42. 'filename': '/var/log/coin/subnet.log',
  43. 'maxBytes': 1024*1024*15, # 15MB
  44. 'backupCount': 10,
  45. }
  46. LOGGING["loggers"]["coin.billing"]["handlers"] = [ 'coin_accounting' ]
  47. LOGGING["loggers"]["coin.subnets"]["handlers"] = [ 'coin_subnets' ]