From 5232ed6fd0cc86fb5fe51379f28d8ee60d4a896d Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Jun 11 2018 03:14:50 +0000 Subject: Raise FILE_SIZE_HIGHLIGHT in the sample configuration to a useful level The current default limit is far too low for a lot of text files. For many local instances, it is highly desired to have syntax highlighting for most, if not all content stored. The limit being set here has been tested with constrained local instances to render appreciably well without making things slow. Signed-off-by: Neal Gompa --- diff --git a/files/pagure.cfg.sample b/files/pagure.cfg.sample index 2898966..aadd631 100644 --- a/files/pagure.cfg.sample +++ b/files/pagure.cfg.sample @@ -15,6 +15,9 @@ ENABLE_DOCS = True # Enables / Disables private projects PRIVATE_PROJECTS = True +# File character limit before disabling syntax highlighting +FILE_SIZE_HIGHLIGHT = 500000 + ### Secret key for the Flask application SECRET_KEY=''