/
app.ini
113 lines (97 loc) · 3.28 KB
/
app.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[markup.jupyter]
ENABLED = true
FILE_EXTENSIONS = .ipynb
; --template option didn't work until recently
RENDER_COMMAND = "jupyter nbconvert --stdout --to html --template classic "
; pandoc --katex option doesn't work
; RENDER_COMMAND = "pandoc -f ipynb -t html --katex "
; This works but formatting seems a bit better with nbconvert
; RENDER_COMMAND = "pandoc -f ipynb -t html "
IS_INPUT_FILE = true
[markup.asciidoc]
ENABLED = true
FILE_EXTENSIONS = .adoc,.asciidoc
RENDER_COMMAND = "asciidoctor -s -a showtitle --out-file=- -"
; Input is not a standard input but a file
IS_INPUT_FILE = false
[markup.sanitizer.TeX]
; requires pandoc installed through Dockerfile
; Pandoc renders TeX segments as <span>s with the "math" class, optionally
; with "inline" or "display" classes depending on context.
; This doesn't seem to work well so we comment out the --katex from pandoc for now
; Katex is implemented by css and a javascript in the header.tpbl
ELEMENT = span
ALLOW_ATTR = class
REGEXP = ^\s*((math(\s+|$)|inline(\s+|$)|display(\s+|$)))+
; commenting this out
; it's not compatible with mermaid and I don't think it's required since katex is rendered through css
;[markup.markdown]
; requires pandoc installed through Dockerfile
;ENABLED = true
;FILE_EXTENSIONS = .md,.markdown
;; RENDER_COMMAND = "pandoc -f markdown -t html --katex"
;RENDER_COMMAND = "pandoc -f markdown -t html"
[markup.latex]
; requires pandoc
; render simple latex files into html
; equations work, some features do not (complex tables for example)
; but overall not too bad
ENABLED = true
FILE_EXTENSIONS = .tex
RENDER_COMMAND = "pandoc -f latex -t html "
[markup.word]
; requires pandoc
ENABLED = true
FILE_EXTENSIONS = .docx
RENDER_COMMAND = "pandoc -f docx -t html "
IS_INPUT_FILE = true
[markup.powerpoint]
; requires pptx2md python library and pandoc
ENABLED = true
FILE_EXTENSIONS = .pptx
RENDER_COMMAND = "pptx2md - && pandoc -f markdown -t html "
IS_INPUT_FILE = false
[repository]
PREFERRED_LICENSES = MIT,Apache-2.0
DEFAULT_PRIVATE = private
DEFAULT_BRANCH = main
[repository.upload]
FILE_MAX_SIZE = 50 ; increase max file size from 3MB to 50MB
[service]
DISABLE_REGISTRATION = true ; security option, only admins can create new users.
SHOW_REGISTRATION_BUTTON = false
REGISTER_EMAIL_CONFIRM = true
DEFAULT_ORG_VISIBILITY = private ; [public, limited, private]
DEFAULT_KEEP_EMAIL_PRIVATE = true
[project]
; Default templates for project boards
PROJECT_BOARD_BASIC_KANBAN_TYPE = To Do, In Progress, Done
PROJECT_BOARD_BUG_TRIAGE_TYPE = Needs Triage, High Priority, Low Priority, Closed
[server]
; https://discourse.gitea.io/t/solved-setting-the-default-page-to-something-else/1062
LANDING_PAGE = explore
[mailer]
ENABLED = true
MAILER_TYPE = sendmail
FROM = email@domain.com
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
[attachment]
ENABLED = true
; create the directory gitea/attachments in docker directory
PATH = /data/attachments
MAX_SIZE = 2
MAX_FILES = 4
[log]
MODE = file
LEVEL = info
; create the directory gitea/logs in docker directory
ROOT_PATH = /data/logs
REDIRECT_MACARON_LOG = true
MACARON = console
ROUTER = console
ENABLE_ACCESS_LOG = true