mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Change gitea attachmet config options
This commit is contained in:
parent
6f07f2c5c6
commit
f3af1cdb79
3 changed files with 9 additions and 3 deletions
|
@ -257,6 +257,8 @@ Either you define exactly which release you install. Or you use the option ``lat
|
||||||
| variable name | default value | description |
|
| variable name | default value | description |
|
||||||
| ------------- | ------------- | ----------- |
|
| ------------- | ------------- | ----------- |
|
||||||
| `attachment_enabled` | `true` | Whether issue and pull request attachments are enabled. |
|
| `attachment_enabled` | `true` | Whether issue and pull request attachments are enabled. |
|
||||||
|
| `gitea_attachment_types` | see Docs | Comma-separated list of allowed file extensions (`.zip,.txt`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. |
|
||||||
|
| `gitea_attachment_max_size` | `4` | Maximum size (MB). |
|
||||||
| `gitea_attachment_extra_config` | | you can use this variable to pass additional config parameters in the `[attachment]` section of the config. |
|
| `gitea_attachment_extra_config` | | you can use this variable to pass additional config parameters in the `[attachment]` section of the config. |
|
||||||
|
|
||||||
### Log ([log](https://docs.gitea.io/en-us/config-cheat-sheet/#log-log))
|
### Log ([log](https://docs.gitea.io/en-us/config-cheat-sheet/#log-log))
|
||||||
|
|
|
@ -46,7 +46,7 @@ gitea_user_repo_limit: '-1'
|
||||||
gitea_repository_root: "{{ gitea_home }}/repos"
|
gitea_repository_root: "{{ gitea_home }}/repos"
|
||||||
gitea_repository_extra_config: ''
|
gitea_repository_extra_config: ''
|
||||||
|
|
||||||
# Repository - Upload (repository.upload)
|
# Repository - Upload (repository.upload)
|
||||||
# -> https://docs.gitea.io/en-us/administration/config-cheat-sheet/#repository---upload-repositoryupload
|
# -> https://docs.gitea.io/en-us/administration/config-cheat-sheet/#repository---upload-repositoryupload
|
||||||
gitea_repository_upload_enabled: true
|
gitea_repository_upload_enabled: true
|
||||||
gitea_repository_upload_max_size: 4
|
gitea_repository_upload_max_size: 4
|
||||||
|
@ -194,6 +194,8 @@ gitea_picture_extra_config: ''
|
||||||
# Issue and pull request attachments (attachment)
|
# Issue and pull request attachments (attachment)
|
||||||
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
|
||||||
gitea_attachment_enabled: true
|
gitea_attachment_enabled: true
|
||||||
|
gitea_attachment_types: '.csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip'
|
||||||
|
gitea_attachment_max_size: 4
|
||||||
gitea_attachment_extra_config: ''
|
gitea_attachment_extra_config: ''
|
||||||
|
|
||||||
# Log (log)
|
# Log (log)
|
||||||
|
|
|
@ -216,8 +216,10 @@ AVATAR_UPLOAD_PATH = {{ gitea_home }}/data/avatars
|
||||||
;
|
;
|
||||||
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
|
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
|
||||||
[attachment]
|
[attachment]
|
||||||
ENABLED = {{ gitea_attachment_enabled | ternary('true', 'false') }}
|
ENABLED = {{ gitea_attachment_enabled | ternary('true', 'false') }}
|
||||||
PATH = {{ gitea_home }}/data/attachments
|
ALLOWED_TYPES = {{ gitea_attachment_types }}
|
||||||
|
MAX_SIZE = {{ gitea_attachment_max_size }}
|
||||||
|
PATH = {{ gitea_home }}/data/attachments
|
||||||
{{ gitea_attachment_extra_config }}
|
{{ gitea_attachment_extra_config }}
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue