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.

181 lines
6.3KB

  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. #
  7. # String values can substitute the following special variables:
  8. # %(_basedir): The absolute path to the root of this git repository, such that
  9. # ./rophako/app.py exists.
  10. # %(_year): inserts the current year (for the RSS feed copyright setting)
  11. # Constants that may be useful in this file.
  12. [DEFAULT]
  13. _admin_email = root@localhost
  14. _date_format = %A, %B %d %Y @ %I:%M:%S %p
  15. # "Weekday, Month dd yyyy @ hh:mm:ss AM"
  16. #------------------------------------------------------------------------------#
  17. # General Website Settings #
  18. #------------------------------------------------------------------------------#
  19. [site]
  20. # Debug mode for development only!
  21. debug = false
  22. # Unique name of your site, e.g. "kirsle.net"
  23. site_name = example.com
  24. # Path to your site's HTML root. Whenever Rophako tries to render a
  25. # template, it will check in your site's root for the template first before
  26. # defaulting to the default fallback pages in the rophako/www folder. All
  27. # of the core Rophako pages, e.g. for account, blog, photo albums and so on,
  28. # have templates in the default site. You can override those templates by
  29. # creating files with the same paths in your site's HTML folder.
  30. site_root = %(_basedir)s/site/www
  31. # E-mail address for site notifications (e.g. new comments and exceptions)
  32. notify_address = %(_admin_email)s
  33. # Where to save temp files for photo uploads etc.
  34. tempdir = /tmp
  35. #------------------------------------------------------------------------------#
  36. # Database settings #
  37. #------------------------------------------------------------------------------#
  38. [db]
  39. # Rophako uses a flat file JSON database system, and a Redis server sits
  40. # between Rophako and the filesystem. The db_root is the path on the
  41. # filesystem to store documents in (can be relative, default "./db")
  42. db_root = db
  43. redis_host = localhost
  44. redis_port = 6379
  45. redis_db = 0
  46. redis_prefix = rophako:
  47. #------------------------------------------------------------------------------#
  48. # Security Settings #
  49. #------------------------------------------------------------------------------#
  50. [security]
  51. # Set this value to true to force SSL/TLS use on your web app. Turning
  52. # this on will do the following:
  53. # - Send HTTP Strict-Transport-Security header
  54. # - Use secure session cookies
  55. force_ssl = false
  56. # Secret key used for session cookie signing. Make this long and hard to
  57. # guess.
  58. #
  59. # Tips for creating a strong secret key:
  60. # $ python
  61. # >>> import os
  62. # >>> os.urandom(24)
  63. # '\xfd{H\xe5<\x95\xf9\xe3\x96.5\xd1\x01O<!\xd5\xa2\xa0\x9fR"\xa1\xa8'
  64. #
  65. # Then take that whole quoted string and paste it right in as the secret
  66. # key! Do NOT use that one. It was just an example! Make your own.
  67. secret_key = for the love of Arceus, change this key!
  68. # Password strength: number of iterations for bcrypt password.
  69. bcrypt_iterations = 12
  70. #------------------------------------------------------------------------------#
  71. # Mail Settings #
  72. #------------------------------------------------------------------------------#
  73. [mail]
  74. # method = smtp or sendmail (not yet implemented)
  75. method = smtp
  76. server = localhost
  77. port = 25
  78. sender = Rophako CMS <no-reply@rophako.kirsle.net>
  79. #------------------------------------------------------------------------------#
  80. # Plugin Configurations #
  81. #------------------------------------------------------------------------------#
  82. ###
  83. # Emoticons
  84. ###
  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 EMOTICON_ROOT_PRIVATE to look there instead.
  89. [emoticons]
  90. theme = tango
  91. root_private = %(_basedir)s/rophako/www/static/smileys
  92. ###
  93. # Blog
  94. ###
  95. [blog]
  96. default_category = Uncategorized
  97. default_privacy = public
  98. time_format = %(_date_format)s
  99. allow_comments = true
  100. entries_per_page = 5
  101. # RSS feed settings.
  102. title = Rophako CMS Blog
  103. link = http://rophako.kirsle.net/
  104. language = en
  105. description = The web blog of the Rophako CMS.
  106. copyright = Copyright %(_year)s
  107. webmaster = %(_admin_email)s
  108. image_title = Rophako CMS Blog
  109. image_url = //www.kirsle.net/static/avatars/default.png
  110. image_width = 100
  111. image_height = 100
  112. image_description = Rophako CMS
  113. entries_per_feed = 5
  114. ###
  115. # Photo
  116. ###
  117. [photo]
  118. # The path to where uploaded photos will be stored.
  119. # The PRIVATE path is from the perspective of the server file system.
  120. # The PUBLIC path is from the perspective of the web browser via HTTP.
  121. root_private = %(_basedir)s/site/www/static/photos
  122. root_public = /static/photos
  123. default_album = My Photos
  124. time_format = %(_date_format)s
  125. # Max widths for photo sizes
  126. width_large = 800
  127. width_thumb = 256
  128. width_avatar = 96
  129. ###
  130. # Comment
  131. ###
  132. [comment]
  133. time_format = %(_date_format)s
  134. # We use Gravatar for comments if the user provides an e-mail address.
  135. # Specify the URL to a fallback image to use in case they don't have
  136. # a gravatar.
  137. default_avatar =
  138. #------------------------------------------------------------------------------#
  139. # List of Enabled Plugins #
  140. #------------------------------------------------------------------------------#
  141. [plugins]
  142. # Which plugins to enable? List each plugin by module name. The plugins
  143. # will be assumed to be blueprints that can be attached to the main app
  144. # object. If you instead want to load an arbitrary Python module (i.e. to
  145. # define custom routes at the app layer, not in a blueprint) list those
  146. # under the "custom" section (remove the empty array [] and list them
  147. # like shown in the plugins section).
  148. blueprints =
  149. rophako.modules.blog
  150. rophako.modules.photo
  151. rophako.modules.comment
  152. rophako.modules.emoticons
  153. rophako.modules.contact
  154. rophako.modules.tracking
  155. custom =