A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3KB

  1. # Sample config file for Rophako.
  2. #
  3. # Edit this file and save the copy as "config.py".
  4. import os
  5. _basedir = os.path.abspath(os.path.dirname(__file__))
  6. DEBUG = True
  7. # Unique name of your site, e.g. "kirsle.net"
  8. SITE_NAME = "example.com"
  9. # Secret key used for session cookie signing. Make this long and hard to guess.
  10. #
  11. # Tips for creating a strong secret key:
  12. # $ python
  13. # >>> import os
  14. # >>> os.urandom(24)
  15. # '\xfd{H\xe5<\x95\xf9\xe3\x96.5\xd1\x01O<!\xd5\xa2\xa0\x9fR"\xa1\xa8'
  16. #
  17. # Then take that whole quoted string and paste it right in as the secret key!
  18. # Do NOT use that one. It was just an example! Make your own.
  19. SECRET_KEY = 'for the love of Arceus, change this key!'
  20. # Password strength: number of iterations for bcrypt to hash passwords.
  21. BCRYPT_ITERATIONS = 12
  22. # Rophako uses a flat file JSON database system, and the Redis caching server
  23. # sits between Ropahko and the filesystem.
  24. DB_ROOT = "db"
  25. REDIS_HOST = "localhost"
  26. REDIS_PORT = 6379
  27. REDIS_DB = 0
  28. REDIS_PREFIX = "rophako:"
  29. # Blog settings
  30. BLOG_ENTRIES_PER_PAGE = 5 # Number of entries to show per page
  31. BLOG_ENTRIES_PER_RSS = 5 # The same, but for the RSS feed
  32. BLOG_DEFAULT_CATEGORY = "Uncategorized"
  33. BLOG_DEFAULT_PRIVACY = "public"
  34. BLOG_TIME_FORMAT = "%A, %B %d %Y @ %I:%M:%S %p" # "Weekday, Month dd yyyy @ hh:mm:ss AM"
  35. BLOG_ALLOW_COMMENTS = True