mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Merge pull request #48 from roles-ansible/repository.upload
adding variables for [repository.upload]
This commit is contained in:
commit
6713941896
4 changed files with 6 additions and 2 deletions
|
@ -70,6 +70,7 @@ Either you define exactly which release you install. Or you use the option ``lat
|
||||||
| `gitea_disable_http_git` | `false` | Disable the ability to interact with repositories over the HTTP protocol. (true/false) |
|
| `gitea_disable_http_git` | `false` | Disable the ability to interact with repositories over the HTTP protocol. (true/false) |
|
||||||
| `gitea_default_branch` | `main` | Default branch name of all repositories. |
|
| `gitea_default_branch` | `main` | Default branch name of all repositories. |
|
||||||
| `gitea_repository_extra_config` | `''` | you can use this variable to pass additional config parameters in the `[repository]` section of the config. |
|
| `gitea_repository_extra_config` | `''` | you can use this variable to pass additional config parameters in the `[repository]` section of the config. |
|
||||||
|
| `gitea_repository_upload_extra_config` | you can use this variable to pass additional config parameters in the `[repository.upload]` section of the config. |
|
||||||
|
|
||||||
### UI ([ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui))
|
### UI ([ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui))
|
||||||
| variable name | default value | description |
|
| variable name | default value | description |
|
||||||
|
|
|
@ -30,6 +30,7 @@ gitea_user_repo_limit: '-1'
|
||||||
gitea_disable_http_git: false
|
gitea_disable_http_git: false
|
||||||
gitea_default_branch: 'main'
|
gitea_default_branch: 'main'
|
||||||
gitea_repository_extra_config: ''
|
gitea_repository_extra_config: ''
|
||||||
|
gitea_repository_upload_extra_config: ''
|
||||||
|
|
||||||
# UI (ui)
|
# UI (ui)
|
||||||
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
|
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
|
||||||
|
|
|
@ -18,9 +18,11 @@ FORCE_PRIVATE = {{ gitea_force_private | ternary('true', 'false') }}
|
||||||
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
|
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
|
||||||
DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }}
|
DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }}
|
||||||
DEFAULT_BRANCH = {{ gitea_default_branch }}
|
DEFAULT_BRANCH = {{ gitea_default_branch }}
|
||||||
|
{{ gitea_repository_extra_config }}
|
||||||
|
;
|
||||||
[repository.upload]
|
[repository.upload]
|
||||||
TEMP_PATH = {{ gitea_home }}/data/tmp/uploads
|
TEMP_PATH = {{ gitea_home }}/data/tmp/uploads
|
||||||
{{ gitea_repository_extra_config }}
|
{{ gitea_repository_upload_extra_config }}
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
|
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui
|
||||||
|
|
|
@ -56,5 +56,5 @@ transfer_custom_footer:
|
||||||
- 'files/gitea_footer/extra_links_footer.tmpl'
|
- 'files/gitea_footer/extra_links_footer.tmpl'
|
||||||
- 'files/extra_links_footer.tmpl'
|
- 'files/extra_links_footer.tmpl'
|
||||||
|
|
||||||
playbook_version_number: 22 # should be int
|
playbook_version_number: 23 # should be int
|
||||||
playbook_version_path: 'do1jlr.gitea.version'
|
playbook_version_path: 'do1jlr.gitea.version'
|
||||||
|
|
Loading…
Reference in a new issue