system.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. absolute_urls: false # Absolute or relative URLs for `base_url`
  2. timezone: '' # Valid values: http://php.net/manual/en/timezones.php
  3. default_locale: # Default locale (defaults to system)
  4. param_sep: ':' # Parameter separator, use ';' for Apache on windows
  5. wrapped_site: false # For themes/plugins to know if Grav is wrapped by another platform
  6. reverse_proxy_setup: false # Running in a reverse proxy scenario with different webserver ports than proxy
  7. force_ssl: false # If enabled, Grav forces to be accessed via HTTPS (NOTE: Not an ideal solution)
  8. force_lowercase_urls: true # If you want to support mixed cased URLs set this to false
  9. custom_base_url: '' # Set the base_url manually, e.g. http://yoursite.com/yourpath
  10. username_regex: '^[a-z0-9_-]{3,16}$' # Only lowercase chars, digits, dashes, underscores. 3 - 16 chars
  11. pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}' # At least one number, one uppercase and lowercase letter, and be at least 8+ chars
  12. intl_enabled: true # Special logic for PHP International Extension (mod_intl)
  13. languages:
  14. supported: [] # List of languages supported. eg: [en, fr, de]
  15. default_lang: # Default is the first supported language. Must be one of the supported languages
  16. include_default_lang: true # Include the default lang prefix in all URLs
  17. pages_fallback_only: false # Only fallback to find page content through supported languages
  18. translations: true # Enable translations by default
  19. translations_fallback: true # Fallback through supported translations if active lang doesn't exist
  20. session_store_active: false # Store active language in session
  21. http_accept_language: false # Attempt to set the language based on http_accept_language header in the browser
  22. override_locale: false # Override the default or system locale with language specific one
  23. home:
  24. alias: '/home' # Default path for home, ie /
  25. hide_in_urls: false # Hide the home route in URLs
  26. pages:
  27. theme: quark # Default theme (defaults to "quark" theme)
  28. order:
  29. by: default # Order pages by "default", "alpha" or "date"
  30. dir: asc # Default ordering direction, "asc" or "desc"
  31. list:
  32. count: 20 # Default item count per page
  33. dateformat:
  34. default: # The default date format Grav expects in the `date: ` field
  35. short: 'jS M Y' # Short date format
  36. long: 'F jS \a\t g:ia' # Long date format
  37. publish_dates: true # automatically publish/unpublish based on dates
  38. process:
  39. markdown: true # Process Markdown
  40. twig: false # Process Twig
  41. twig_first: false # Process Twig before markdown when processing both on a page
  42. never_cache_twig: false # Only cache content, never cache twig processed in content (incompatible with `twig_first: true`)
  43. events:
  44. page: true # Enable page level events
  45. twig: true # Enable Twig level events
  46. markdown:
  47. extra: false # Enable support for Markdown Extra support (GFM by default)
  48. auto_line_breaks: false # Enable automatic line breaks
  49. auto_url_links: false # Enable automatic HTML links
  50. escape_markup: false # Escape markup tags into entities
  51. special_chars: # List of special characters to automatically convert to entities
  52. '>': 'gt'
  53. '<': 'lt'
  54. types: [html,htm,xml,txt,json,rss,atom] # list of valid page types
  55. append_url_extension: '' # Append page's extension in Page urls (e.g. '.html' results in /path/page.html)
  56. expires: 604800 # Page expires time in seconds (604800 seconds = 7 days)
  57. cache_control: # Can be blank for no setting, or a valid `cache-control` text value
  58. last_modified: false # Set the last modified date header based on file modification timestamp
  59. etag: false # Set the etag header tag
  60. vary_accept_encoding: false # Add `Vary: Accept-Encoding` header
  61. redirect_default_route: false # Automatically redirect to a page's default route
  62. redirect_default_code: 302 # Default code to use for redirects
  63. redirect_trailing_slash: true # Handle automatically or 302 redirect a trailing / URL
  64. ignore_files: [.DS_Store] # Files to ignore in Pages
  65. ignore_folders: [.git, .idea] # Folders to ignore in Pages
  66. ignore_hidden: true # Ignore all Hidden files and folders
  67. hide_empty_folders: false # If folder has no .md file, should it be hidden
  68. url_taxonomy_filters: true # Enable auto-magic URL-based taxonomy filters for page collections
  69. frontmatter:
  70. process_twig: false # Should the frontmatter be processed to replace Twig variables?
  71. ignore_fields: ['form','forms'] # Fields that might contain Twig variables and should not be processed
  72. cache:
  73. enabled: true # Set to true to enable caching
  74. check:
  75. method: file # Method to check for updates in pages: file|folder|hash|none
  76. driver: auto # One of: auto|file|apcu|memcache|wincache
  77. prefix: 'g' # Cache prefix string (prevents cache conflicts)
  78. purge_at: '0 4 * * *' # How often to purge old file cache (using new scheduler)
  79. clear_at: '0 3 * * *' # How often to clear cache (using new scheduler)
  80. clear_job_type: 'standard' # Type to clear when processing the scheduled clear job `standard`|`all`
  81. clear_images_by_default: true # By default grav will include processed images in cache clear, this can be disabled
  82. cli_compatibility: false # Ensures only non-volatile drivers are used (file, redis, memcache, etc.)
  83. lifetime: 604800 # Lifetime of cached data in seconds (0 = infinite)
  84. gzip: false # GZip compress the page output
  85. allow_webserver_gzip: false # If true, `content-encoding: identity` but connection isn't closed before `onShutDown()` event
  86. redis:
  87. socket: false # Path to redis unix socket (e.g. /var/run/redis/redis.sock), false = use server and port to connect
  88. twig:
  89. cache: true # Set to true to enable Twig caching
  90. debug: true # Enable Twig debug
  91. auto_reload: true # Refresh cache on changes
  92. autoescape: false # Autoescape Twig vars (DEPRECATED, always enabled in strict mode)
  93. undefined_functions: true # Allow undefined functions
  94. undefined_filters: true # Allow undefined filters
  95. umask_fix: false # By default Twig creates cached files as 755, fix switches this to 775
  96. assets: # Configuration for Assets Manager (JS, CSS)
  97. css_pipeline: false # The CSS pipeline is the unification of multiple CSS resources into one file
  98. css_pipeline_include_externals: true # Include external URLs in the pipeline by default
  99. css_pipeline_before_excludes: true # Render the pipeline before any excluded files
  100. css_minify: true # Minify the CSS during pipelining
  101. css_minify_windows: false # Minify Override for Windows platforms. False by default due to ThreadStackSize
  102. css_rewrite: true # Rewrite any CSS relative URLs during pipelining
  103. js_pipeline: false # The JS pipeline is the unification of multiple JS resources into one file
  104. js_pipeline_include_externals: true # Include external URLs in the pipeline by default
  105. js_pipeline_before_excludes: true # Render the pipeline before any excluded files
  106. js_minify: true # Minify the JS during pipelining
  107. enable_asset_timestamp: false # Enable asset timestamps
  108. collections:
  109. jquery: system://assets/jquery/jquery-2.x.min.js
  110. errors:
  111. display: 0 # Display either (1) Full backtrace | (0) Simple Error | (-1) System Error
  112. log: true # Log errors to /logs folder
  113. log:
  114. handler: file # Log handler. Currently supported: file | syslog
  115. syslog:
  116. facility: local6 # Syslog facilities output
  117. debugger:
  118. enabled: false # Enable Grav debugger and following settings
  119. shutdown:
  120. close_connection: true # Close the connection before calling onShutdown(). false for debugging
  121. images:
  122. default_image_quality: 85 # Default image quality to use when resampling images (85%)
  123. cache_all: false # Cache all image by default
  124. cache_perms: '0755' # MUST BE IN QUOTES!! Default cache folder perms. Usually '0755' or '0775'
  125. debug: false # Show an overlay over images indicating the pixel depth of the image when working with retina for example
  126. auto_fix_orientation: false # Automatically fix the image orientation based on the Exif data
  127. seofriendly: false # SEO-friendly processed image names
  128. media:
  129. enable_media_timestamp: false # Enable media timestamps
  130. unsupported_inline_types: [] # Array of supported media types to try to display inline
  131. allowed_fallback_types: [] # Array of allowed media types of files found if accessed via Page route
  132. auto_metadata_exif: false # Automatically create metadata files from Exif data where possible
  133. session:
  134. enabled: true # Enable Session support
  135. initialize: true # Initialize session from Grav (if false, plugin needs to start the session)
  136. timeout: 1800 # Timeout in seconds
  137. name: grav-site # Name prefix of the session cookie. Use alphanumeric, dashes or underscores only. Do not use dots in the session name
  138. uniqueness: path # Should sessions be `path` based or `security.salt` based
  139. secure: false # Set session secure. If true, indicates that communication for this cookie must be over an encrypted transmission. Enable this only on sites that run exclusively on HTTPS
  140. httponly: true # Set session HTTP only. If true, indicates that cookies should be used only over HTTP, and JavaScript modification is not allowed.
  141. split: true # Sessions should be independent between site and plugins (such as admin)
  142. path:
  143. gpm:
  144. releases: stable # Set to either 'stable' or 'testing'
  145. proxy_url: # Configure a manual proxy URL for GPM (eg 127.0.0.1:3128)
  146. method: 'auto' # Either 'curl', 'fopen' or 'auto'. 'auto' will try fopen first and if not available cURL
  147. verify_peer: true # Sometimes on some systems (Windows most commonly) GPM is unable to connect because the SSL certificate cannot be verified. Disabling this setting might help.
  148. official_gpm_only: true # By default GPM direct-install will only allow URLs via the official GPM proxy to ensure security
  149. accounts:
  150. type: data # Account type: data or flex
  151. storage: file # Flex storage type: file or folder
  152. strict_mode:
  153. yaml_compat: true # Grav 1.5+: Enables YAML backwards compatibility
  154. twig_compat: true # Grav 1.5+: Enables deprecated Twig autoescape setting (autoescape: false)