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.
 
 
 
 
 

169 lines
5.4 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. # Proxy support. If you *KNOW* your web app will be behind a trusted proxy,
  65. # such as a load balancer, you can make the app accept the X-Forwarded-For
  66. # header to provide the user's real IP address. Do NOT set this if you are
  67. # not behind a proxy, otherwise a malicious user could "spoof" their address
  68. # by using this header.
  69. use_forwarded_for: false
  70. ###
  71. # Mail Settings
  72. ###
  73. mail:
  74. method: smtp # or sendmail (not implemented yet)
  75. server: localhost
  76. port: 25
  77. sender: Rophako CMS <no-reply@rophako.kirsle.net>
  78. ###
  79. # Plugin Configurations
  80. ###
  81. emoticons:
  82. # Emoticon theme used for blog posts and comments. Should exist at the URL
  83. # "/static/smileys" from your document root, and have a file named
  84. # "emoticons.json" inside. If you add a custom theme to your private site
  85. # folder, then also change the root_private to look there instead.
  86. theme: tango
  87. root_private: "{basedir}/rophako/www/static/smileys"
  88. blog:
  89. default_category: Uncategorized
  90. default_privacy: public
  91. time_format: *DATE_FORMAT
  92. allow_comments: true
  93. entries_per_page: 5
  94. # RSS feed settings
  95. title: Rophako CMS Blog
  96. link: http://rophako.kirsle.net/
  97. language: en
  98. description: The web blog of the Rophako CMS.
  99. copyright: "Copyright {year}"
  100. webmaster: *ADMIN_EMAIL
  101. image_title: Rophako CMS Blog
  102. image_url: https://www.kirsle.net/static/avatars/default.png
  103. image_width: 100
  104. image_height: 100
  105. image_description: Rophako CMS
  106. entries_per_feed: 5
  107. photo:
  108. # The path to where the uploaded photos will be stored.
  109. # The PRIVATE path is from the perspective of the server file system.
  110. # The PUBLIC path is from the perspective of the web browser via HTTP.
  111. root_private: "{basedir}/site/www/static/photos"
  112. root_public: /static/photos
  113. default_album: My Photos
  114. time_format: *DATE_FORMAT
  115. # Max widths for photo sizes
  116. width_large: 800
  117. width_thumb: 256
  118. width_avatar: 96
  119. comment:
  120. time_format: *DATE_FORMAT
  121. # We use Gravatar for comments if the user provides an e-mail address.
  122. # Specify the URL to a fallback image to use in case they don't have
  123. # a gravatar.
  124. default_avatar:
  125. wiki:
  126. default_page: Main Page
  127. time_format: *DATE_FORMAT
  128. ###
  129. # List of Enabled Plugins
  130. ###
  131. # Which plugins to enable? List each plugin by module name. The plugins
  132. # will be assumed to be blueprints that can be attached to the main app
  133. # object. If you instead want to load an arbitrary Python module (i.e. to
  134. # define custom routes at the app layer, not in a blueprint) list those
  135. # under the "custom" section.
  136. blueprints:
  137. - rophako.modules.blog
  138. - rophako.modules.wiki
  139. - rophako.modules.photo
  140. - rophako.modules.comment
  141. - rophako.modules.emoticons
  142. - rophako.modules.contact
  143. # If adding custom scripts, remove the empty array and define a list like
  144. # in the above blueprints example.
  145. custom: []