Skip to content

Commit 6713941

Browse files
authored
Merge pull request roles-ansible#48 from roles-ansible/repository.upload
adding variables for [repository.upload]
2 parents 9b4e0a7 + ab15ba7 commit 6713941

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Either you define exactly which release you install. Or you use the option ``lat
7070
| `gitea_disable_http_git` | `false` | Disable the ability to interact with repositories over the HTTP protocol. (true/false) |
7171
| `gitea_default_branch` | `main` | Default branch name of all repositories. |
7272
| `gitea_repository_extra_config` | `''` | you can use this variable to pass additional config parameters in the `[repository]` section of the config. |
73+
| `gitea_repository_upload_extra_config` | you can use this variable to pass additional config parameters in the `[repository.upload]` section of the config. |
7374

7475
### UI ([ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui))
7576
| variable name | default value | description |

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ gitea_user_repo_limit: '-1'
3030
gitea_disable_http_git: false
3131
gitea_default_branch: 'main'
3232
gitea_repository_extra_config: ''
33+
gitea_repository_upload_extra_config: ''
3334

3435
# UI (ui)
3536
# -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui

templates/gitea.ini.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ FORCE_PRIVATE = {{ gitea_force_private | ternary('true', 'false') }}
1818
MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }}
1919
DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }}
2020
DEFAULT_BRANCH = {{ gitea_default_branch }}
21+
{{ gitea_repository_extra_config }}
22+
;
2123
[repository.upload]
2224
TEMP_PATH = {{ gitea_home }}/data/tmp/uploads
23-
{{ gitea_repository_extra_config }}
25+
{{ gitea_repository_upload_extra_config }}
2426
;
2527
;
2628
; -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui

vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ transfer_custom_footer:
5656
- 'files/gitea_footer/extra_links_footer.tmpl'
5757
- 'files/extra_links_footer.tmpl'
5858

59-
playbook_version_number: 22 # should be int
59+
playbook_version_number: 23 # should be int
6060
playbook_version_path: 'do1jlr.gitea.version'

0 commit comments

Comments
 (0)