Enable git lfs options

With this change it is possible to enable the git-lfs server.
And to configure where data are stored.
This commit is contained in:
L3D 2019-07-05 18:46:41 +02:00 committed by Thomas Maurice
parent 736e33bb37
commit afbd034f50
2 changed files with 9 additions and 0 deletions

View file

@ -17,6 +17,9 @@ gitea_http_port: 3000
gitea_disable_http_git: false
gitea_offline_mode: true
gitea_lfs_server_enabled: false
gitea_lfs_content_path: "data/lfs"
gitea_db_type: sqlite3
gitea_db_host: 127.0.0.0:3306
gitea_db_name: root

View file

@ -51,6 +51,12 @@ SSH_LISTEN_PORT = %(SSH_PORT)s
OFFLINE_MODE = {{ gitea_offline_mode }}
; Default path for App data
APP_DATA_PATH = {{ gitea_home }}/data
{%- if gitea_lfs_server_enabled | bool %}
;Enables git-lfs support.
LFS_START_SERVER = true
; Where to store LFS files.
LFS_CONTENT_PATH = {{ gitea_lfs_content_path }}
{%- endif %}
[database]
; Either "mysql", "postgres", "mssql" or "sqlite3", it's your choice