mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
add LFS_JWT_SECRET option
+ Add comments about git-lfs to the README. + New variable for LFS_JWT_SECRET. + absolute path for gitea_lfs_content_path. + maybe some help to resolve https://github.com/thomas-maurice/ansible-role-gitea/issues/70
This commit is contained in:
parent
c68565952a
commit
cde4a964d5
3 changed files with 12 additions and 1 deletions
|
@ -123,6 +123,13 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we
|
|||
* `gitea_mailer_from`: Sender mail address
|
||||
* `gitea_enable_notify_mail`: Whether e-mail should be send to watchers of a repository when something happens. Default: `false`
|
||||
|
||||
### LFS configuration
|
||||
|
||||
* `gitea_lfs_enabled`: Enable GIT LFS *(git large file storeage: [git-lfs](https://git-lfs.github.com/))*. Default: `false`
|
||||
* `gitea_lfs_content_path`: path where the lfs files are stored
|
||||
* `gitea_lfs_secret`: JWT secret for remote LFS usage
|
||||
|
||||
|
||||
### Fail2Ban configuration
|
||||
|
||||
If enabled, this will deploy a fail2ban filter and jail config for Gitea as described in the [Gitea Documentation](https://docs.gitea.io/en-us/fail2ban-setup/).
|
||||
|
|
|
@ -21,7 +21,8 @@ gitea_disable_http_git: false
|
|||
gitea_offline_mode: true
|
||||
|
||||
gitea_lfs_server_enabled: false
|
||||
gitea_lfs_content_path: "data/lfs"
|
||||
gitea_lfs_content_path: "{{ gitea_home }}/data/lfs"
|
||||
gitea_lfs_jwt_secret: LongUniqueS3cret_
|
||||
|
||||
gitea_db_type: sqlite3
|
||||
gitea_db_host: 127.0.0.0:3306
|
||||
|
|
|
@ -58,6 +58,9 @@ APP_DATA_PATH = {{ gitea_home }}/data
|
|||
LFS_START_SERVER = true
|
||||
; Where to store LFS files.
|
||||
LFS_CONTENT_PATH = {{ gitea_lfs_content_path }}
|
||||
; LFS authentication secret
|
||||
LFS_JWT_SECRET = {{ gitea_lfs_jwt_secret }}
|
||||
|
||||
{%- endif %}
|
||||
|
||||
[database]
|
||||
|
|
Loading…
Reference in a new issue