diff options
Diffstat (limited to 'conf/app.ini')
-rw-r--r-- | conf/app.ini | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini index ea0ca16295..515269a764 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -20,6 +20,26 @@ MAX_CREATION_LIMIT = -1 ; Patch test queue length, make it as large as possible PULL_REQUEST_QUEUE_LENGTH = 10000 +[editor] +; List of file extensions that should have line wraps in the CodeMirror editor +; Separate extensions with a comma. To line wrap files w/o extension, just put a comma +LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd, +; Valid file modes that have a preview API associated with them, such as api/v1/markdown +; Separate values by commas. Preview tab in edit mode won't show if the file extension doesn't match +PREVIEW_TAB_APIS = markdown + +[upload] +; Whether repository file uploads are enabled. Defaults to `true` +ENABLE_UPLOADS = true +; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gogs restart) +TEMP_PATH = data/tmp/uploads +; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type +ALLOWED_TYPES = +; Max size of each file in MB. Defaults to 32MB +FILE_MAX_SIZE = 32 +; Max number of files per upload. Defaults to 10 +MAX_FILES = 10 + [ui] ; Number of repositories that are showed in one explore page EXPLORE_PAGING_NUM = 20 @@ -54,6 +74,9 @@ ENABLE_HARD_LINE_BREAK = false ; List of custom URL-Schemes that are allowed as links when rendering Markdown ; for example git,magnet CUSTOM_URL_SCHEMES = +; List of file extensions that should be rendered/edited as Markdown +; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma +MD_FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd [server] PROTOCOL = http |