diff --git a/roles/gitea/defaults/main.yml b/roles/gitea/defaults/main.yml index 7804c52b9..deb1b7bca 100644 --- a/roles/gitea/defaults/main.yml +++ b/roles/gitea/defaults/main.yml @@ -38,7 +38,6 @@ gitea_gpg_key: 7C9E68152594688862D62AF62D9AE806EC1592E2 gitea_user: gitea gitea_home: "/home/{{ gitea_user }}" # SSH credentials stored here gitea_run_directory: "{{ gitea_root_directory }}" -gitea_db_directory: "/library/dbdata/gitea" gitea_url: /gitea gitea_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}{{ gitea_url }}" diff --git a/roles/gitea/templates/app.ini.j2 b/roles/gitea/templates/app.ini.j2 index 664162084..80e468883 100644 --- a/roles/gitea/templates/app.ini.j2 +++ b/roles/gitea/templates/app.ini.j2 @@ -217,7 +217,7 @@ DSA = 1024 [database] ; Either "mysql", "postgres", "mssql" or "sqlite3", it's your choice -DB_TYPE = mysql +DB_TYPE = sqlite3 HOST = 127.0.0.1:3306 NAME = gitea USER = root @@ -227,7 +227,7 @@ PASSWD = ; For MySQL, either "false" (default), "true", or "skip-verify" SSL_MODE = disable ; For "sqlite3" and "tidb", use an absolute path when you start gitea as service -PATH = data/gitea.db +PATH = {{ gitea_root_directory }}/data/gitea.db ; For "sqlite3" only. Query timeout SQLITE_TIMEOUT = 500 ; For iterate buffer, default is 50