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.ini 6.7KB

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