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.
 
 
 
 
 

162 lines
5.0 KiB

  1. # Default configuration settings for Rophako -- DO NOT EDIT THIS FILE!
  2. #
  3. # To configure your site, create a new file named "settings.yml" and override
  4. # settings defined in this file. Your settings.yml is masked on top of the
  5. # settings in defaults.yml.
  6. rophako:
  7. ###
  8. # General Website Settings
  9. ###
  10. site:
  11. debug: false
  12. # Unique name of your site, e.g. "kirsle.net"
  13. site_name: example.com
  14. # Path to your site's HTML root. Whenever Rophako tries to render a
  15. # template, it will check in your site's root for the template first
  16. # before defaulting to the fallback pages in the rophako/www folder.
  17. # All of the core Rophako pages, e.g. for account, blog, photo albums
  18. # and so on, have templates in the default site. You can override those
  19. # templates by creating files with the same paths in your site's root.
  20. site_root: "{basedir}/site/www"
  21. # E-mail address for site notifications (e.g. new comments and errors)
  22. notify_address: &ADMIN_EMAIL root@localhost
  23. # Default date/time format (not used by the Rophako app but referenced
  24. # by other spots in this config file, for easy overriding).
  25. _date_format: &DATE_FORMAT '%A, %B %d %Y @ %I:%M:%S %p'
  26. # Where to save temp files for photo uploads etc.
  27. tempdir: /tmp
  28. ###
  29. # Database settings
  30. ###
  31. db:
  32. # Rophako uses a flat file JSON database system, and a Redis server sits
  33. # between Rophako and the filesystem. The db_root is the path on the
  34. # filesystem to store documents in (can be relative, default "./db")
  35. db_root: db
  36. # Redis connection settings
  37. redis_host: localhost
  38. redis_port: 6379
  39. redis_db: 0
  40. redis_prefix: "rophako:"
  41. ###
  42. # Security Settings
  43. ###
  44. security:
  45. # Set this value to true to force SSL/TLS on your web app. Turning this on
  46. # will do the following:
  47. # - Send HTTP Strict-Transport-Security header
  48. # - Use secure session cookies (SSL-only)
  49. force_ssl: true
  50. # Secret key used for session cookie signing. Make this long and hard to
  51. # guess.
  52. #
  53. # Tips for creating a strong secret key:
  54. # $ python
  55. # >>> import os
  56. # >>> os.urandom(24)
  57. # '\xfd{H\xe5<\x95\xf9\xe3\x96.5\xd1\x01O<!\xd5\xa2\xa0\x9fR"\xa1\xa8'
  58. #
  59. # Then take that whole quoted string and paste it right in as the secret
  60. # key. Do NOT use that one, it was just an example. Make your own!
  61. secret_key: 'for the love of Arceus, change this key!'
  62. # Password strength: number of iterations for bcrypt password.
  63. bcrypt_iterations: 12
  64. ###
  65. # Mail Settings
  66. ###
  67. mail:
  68. method: smtp # or sendmail (not implemented yet)
  69. server: localhost
  70. port: 25
  71. sender: Rophako CMS <no-reply@rophako.kirsle.net>
  72. ###
  73. # Plugin Configurations
  74. ###
  75. emoticons:
  76. # Emoticon theme used for blog posts and comments. Should exist at the URL
  77. # "/static/smileys" from your document root, and have a file named
  78. # "emoticons.json" inside. If you add a custom theme to your private site
  79. # folder, then also change the root_private to look there instead.
  80. theme: tango
  81. root_private: "{basedir}/rophako/www/static/smileys"
  82. blog:
  83. default_category: Uncategorized
  84. default_privacy: public
  85. time_format: *DATE_FORMAT
  86. allow_comments: true
  87. entries_per_page: 5
  88. # RSS feed settings
  89. title: Rophako CMS Blog
  90. link: http://rophako.kirsle.net/
  91. language: en
  92. description: The web blog of the Rophako CMS.
  93. copyright: "Copyright {year}"
  94. webmaster: *ADMIN_EMAIL
  95. image_title: Rophako CMS Blog
  96. image_url: https://www.kirsle.net/static/avatars/default.png
  97. image_width: 100
  98. image_height: 100
  99. image_description: Rophako CMS
  100. entries_per_feed: 5
  101. photo:
  102. # The path to where the uploaded photos will be stored.
  103. # The PRIVATE path is from the perspective of the server file system.
  104. # The PUBLIC path is from the perspective of the web browser via HTTP.
  105. root_private: "{basedir}/site/www/static/photos"
  106. root_public: /static/photos
  107. default_album: My Photos
  108. time_format: *DATE_FORMAT
  109. # Max widths for photo sizes
  110. width_large: 800
  111. width_thumb: 256
  112. width_avatar: 96
  113. comment:
  114. time_format: *DATE_FORMAT
  115. # We use Gravatar for comments if the user provides an e-mail address.
  116. # Specify the URL to a fallback image to use in case they don't have
  117. # a gravatar.
  118. default_avatar:
  119. wiki:
  120. default_page: Main Page
  121. time_format: *DATE_FORMAT
  122. ###
  123. # List of Enabled Plugins
  124. ###
  125. # Which plugins to enable? List each plugin by module name. The plugins
  126. # will be assumed to be blueprints that can be attached to the main app
  127. # object. If you instead want to load an arbitrary Python module (i.e. to
  128. # define custom routes at the app layer, not in a blueprint) list those
  129. # under the "custom" section.
  130. blueprints:
  131. - rophako.modules.blog
  132. - rophako.modules.wiki
  133. - rophako.modules.photo
  134. - rophako.modules.comment
  135. - rophako.modules.emoticons
  136. - rophako.modules.contact
  137. # If adding custom scripts, remove the empty array and define a list like
  138. # in the above blueprints example.
  139. custom: []