A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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