From 43e86821488fc3a157ecc90a682576e07f55e063 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 19 Jul 2021 15:17:50 +0200 Subject: [PATCH 1/5] improving [repository] and [repository.upload] section add gitea_repository_upload_extra_config variable --- templates/gitea.ini.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 9c9d300..e07704f 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -18,9 +18,11 @@ FORCE_PRIVATE = {{ gitea_force_private | ternary('true', 'false') }} MAX_CREATION_LIMIT = {{ gitea_user_repo_limit }} DISABLE_HTTP_GIT = {{ gitea_disable_http_git | ternary('true', 'false') }} DEFAULT_BRANCH = {{ gitea_default_branch }} +{{ gitea_repository_extra_config }} +; [repository.upload] 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 From 1906c686369a552a2ed84d70025469a2a5d7860e Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 19 Jul 2021 15:18:38 +0200 Subject: [PATCH 2/5] add gitea_repository_upload_extra_config to defaults --- defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/defaults/main.yml b/defaults/main.yml index b1a4b79..90376b9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -30,6 +30,7 @@ gitea_user_repo_limit: '-1' gitea_disable_http_git: false gitea_default_branch: 'main' gitea_repository_extra_config: '' +gitea_repository_upload_extra_config : '' # UI (ui) # -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui From c869ab3c35118391ca89144b0808190202247940 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 19 Jul 2021 15:19:45 +0200 Subject: [PATCH 3/5] explain [repository.upload] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 242ed51..69488b7 100644 --- a/README.md +++ b/README.md @@ -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_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_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)) | variable name | default value | description | From ca583c2a1ff9a34d792fb34bd24a9fcba59a80f7 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 19 Jul 2021 15:20:19 +0200 Subject: [PATCH 4/5] increase simplified version for versionscheck --- vars/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/main.yml b/vars/main.yml index 6ee9192..199d5a3 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -56,5 +56,5 @@ transfer_custom_footer: - 'files/gitea_footer/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' From ab15ba77fb779952010c37854368d50fff84eebd Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 19 Jul 2021 15:22:43 +0200 Subject: [PATCH 5/5] fix linting --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 90376b9..9211ce1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -30,7 +30,7 @@ gitea_user_repo_limit: '-1' gitea_disable_http_git: false gitea_default_branch: 'main' gitea_repository_extra_config: '' -gitea_repository_upload_extra_config : '' +gitea_repository_upload_extra_config: '' # UI (ui) # -> https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui