ihmgit/gitea: configure attachments’ allowed mime types

master
Y 2018-09-13 08:32:38 +02:00
parent 4bd3c54bbf
commit 6e9be16807
2 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,9 @@ gitea_disable_registration: 'false'
# Enable email notifications in Gitea (“true” or “false”, as a character string).
gitea_enable_notify_email: 'true'
# Space-separated list of mime types to accept for attachments (“*/*” means: “anything”).
gitea_mime_attach: 'image/jpeg image/png application/zip application/gzip'
# Maximum size of HTTP and PHP uploads.
http_max_upload: 10000M

View File

@ -98,6 +98,7 @@
- {s: mailer, o: USE_SENDMAIL, v: 'true'}
- {s: session, o: PROVIDER, v: file}
- {s: session, o: COOKIE_SECURE, v: 'true'}
- {s: attachment, o: ALLOWED_TYPES, v: '{{gitea_mime_attach | replace(" ", "|")}}'}
- {s: log, o: MODE, v: console}
- {s: log, o: LEVEL, v: Warn}
- {s: log.console, o: LEVEL, v: Warn}