Advertisement
Johnnii360

seahub_settings.py

Sep 30th, 2017
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 KB | None | 0 0
  1. SECRET_KEY = '***'
  2.  
  3. FILE_SERVER_ROOT = 'https://***/seafhttp'
  4. HTTP_SERVER_ROOT = 'https://***/seafhttp'
  5.  
  6. DATABASES = {
  7.     'default': {
  8.         'ENGINE': 'django.db.backends.mysql',
  9.         'NAME' : 'seahub-db',
  10.         'USER' : 'seafile',
  11.         'PASSWORD' : '***',
  12.         'HOST' : '127.0.0.1',
  13.     }
  14. }
  15.  
  16. EMAIL_USE_TLS = False
  17. EMAIL_HOST = '127.0.0.1'        # smpt server
  18. EMAIL_HOST_USER = ''    # username and domain
  19. EMAIL_HOST_PASSWORD = ''    # password
  20. EMAIL_PORT = 587
  21. DEFAULT_FROM_EMAIL = 'noreply@***'
  22. SERVER_EMAIL = EMAIL_HOST_USER
  23.  
  24. # Replace default from email with user's email or not, defaults to ``False``
  25. REPLACE_FROM_EMAIL = True
  26.  
  27. # Set reply-to header to user's email or not, defaults to ``False``. For details,
  28. # please refer to http://www.w3.org/Protocols/rfc822/
  29. ADD_REPLY_TO_HEADER = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement