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.

defaults.yml 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. # Preferred time zone to present datetimes in. See `pytz.all_timezones` for
  27. # valid options here. Examples: "US/Eastern", "America/Los_Angeles" etc.
  28. timezone: US/Pacific
  29. # Where to save temp files for photo uploads etc.
  30. tempdir: /tmp
  31. ###
  32. # Database settings
  33. ###
  34. db:
  35. # Rophako uses a flat file JSON database system, and a Redis server sits
  36. # between Rophako and the filesystem. The db_root is the path on the
  37. # filesystem to store documents in (can be relative, default "./db")
  38. db_root: db
  39. # Redis connection settings
  40. redis_host: localhost
  41. redis_port: 6379
  42. redis_db: 0
  43. redis_prefix: "rophako:"
  44. ###
  45. # Security Settings
  46. ###
  47. security:
  48. # Set this value to true to force SSL/TLS on your web app. Turning this on
  49. # will do the following:
  50. # - Send HTTP Strict-Transport-Security header
  51. # - Use secure session cookies (SSL-only)
  52. force_ssl: true
  53. # Secret key used for session cookie signing. Make this long and hard to
  54. # guess.
  55. #
  56. # Tips for creating a strong secret key:
  57. # $ python
  58. # >>> import os
  59. # >>> os.urandom(24)
  60. # '\xfd{H\xe5<\x95\xf9\xe3\x96.5\xd1\x01O<!\xd5\xa2\xa0\x9fR"\xa1\xa8'
  61. #
  62. # Then take that whole quoted string and paste it right in as the secret
  63. # key. Do NOT use that one, it was just an example. Make your own!
  64. secret_key: 'for the love of Arceus, change this key!'
  65. # Password strength: number of iterations for bcrypt password.
  66. bcrypt_iterations: 12
  67. # Proxy support. If you *KNOW* your web app will be behind a trusted proxy,
  68. # such as a load balancer, you can make the app accept the X-Forwarded-For
  69. # header to provide the user's real IP address. Do NOT set this if you are
  70. # not behind a proxy, otherwise a malicious user could "spoof" their address
  71. # by using this header.
  72. use_forwarded_for: false
  73. ###
  74. # Mail Settings
  75. ###
  76. mail:
  77. method: smtp # or sendmail (not implemented yet)
  78. server: localhost
  79. port: 25
  80. sender: Rophako CMS <no-reply@rophako.kirsle.net>
  81. ###
  82. # Plugin Configurations
  83. ###
  84. emoticons:
  85. # Emoticon theme used for blog posts and comments. Should exist at the URL
  86. # "/static/smileys" from your document root, and have a file named
  87. # "emoticons.json" inside. If you add a custom theme to your private site
  88. # folder, then also change the root_private to look there instead.
  89. theme: tango
  90. root_private: "{basedir}/rophako/www/static/smileys"
  91. blog:
  92. default_category: Uncategorized
  93. default_privacy: public
  94. time_format: *DATE_FORMAT
  95. allow_comments: true
  96. entries_per_page: 5
  97. # RSS feed settings
  98. title: Rophako CMS Blog
  99. link: http://rophako.kirsle.net/
  100. language: en
  101. description: The web blog of the Rophako CMS.
  102. copyright: "Copyright {year}"
  103. webmaster: *ADMIN_EMAIL
  104. image_title: Rophako CMS Blog
  105. image_url: https://www.kirsle.net/static/avatars/default.png
  106. image_width: 100
  107. image_height: 100
  108. image_description: Rophako CMS
  109. entries_per_feed: 5
  110. photo:
  111. # The path to where the uploaded photos will be stored.
  112. # The PRIVATE path is from the perspective of the server file system.
  113. # The PUBLIC path is from the perspective of the web browser via HTTP.
  114. root_private: "{basedir}/site/www/static/photos"
  115. root_public: /static/photos
  116. default_album: My Photos
  117. time_format: *DATE_FORMAT
  118. # Max widths for photo sizes
  119. width_large: 800
  120. width_thumb: 256
  121. width_avatar: 96
  122. comment:
  123. time_format: *DATE_FORMAT
  124. # We use Gravatar for comments if the user provides an e-mail address.
  125. # Specify the URL to a fallback image to use in case they don't have
  126. # a gravatar.
  127. default_avatar:
  128. wiki:
  129. default_page: Main Page
  130. time_format: *DATE_FORMAT
  131. ###
  132. # List of Enabled Plugins
  133. ###
  134. # Which plugins to enable? List each plugin by module name. The plugins
  135. # will be assumed to be blueprints that can be attached to the main app
  136. # object. If you instead want to load an arbitrary Python module (i.e. to
  137. # define custom routes at the app layer, not in a blueprint) list those
  138. # under the "custom" section.
  139. blueprints:
  140. - rophako.modules.blog
  141. - rophako.modules.wiki
  142. - rophako.modules.photo
  143. - rophako.modules.comment
  144. - rophako.modules.emoticons
  145. - rophako.modules.contact
  146. # If adding custom scripts, remove the empty array and define a list like
  147. # in the above blueprints example.
  148. custom: []