From b5974b77f2852bd31a9505172010fd92f09cff24 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 19 Mar 2017 18:03:36 +0100 Subject: [PATCH 1/2] Adjust config for Arch Linux package --- custom/conf/app.ini.sample | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 774a1df59..f46f803cd 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -7,12 +7,12 @@ ; App name that shows in every page title APP_NAME = Gitea: Git with a cup of tea ; Change it if you run locally -RUN_USER = git +RUN_USER = gitea ; Either "dev", "prod" or "test", default is "dev" RUN_MODE = dev [repository] -ROOT = +ROOT = /var/lib/gitea/repos SCRIPT_TYPE = bash ; Default ANSI charset ANSI_CHARSET = @@ -172,13 +172,13 @@ DISABLE_ROUTER_LOG = false ; not forget to export the private key): ; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys ; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes -CERT_FILE = custom/https/cert.pem -KEY_FILE = custom/https/key.pem +CERT_FILE = /var/lib/gitea/cert/cert.pem +KEY_FILE = /var/lib/gitea/cert/key.pem ; Root directory containing templates and static files. ; default is the path where Gitea is executed -STATIC_ROOT_PATH = +STATIC_ROOT_PATH = /usr/share/gitea ; Default path for App data -APP_DATA_PATH = data +APP_DATA_PATH = /var/lib/gitea/data ; Application level GZIP support ENABLE_GZIP = false ; Landing page, can be "home", "explore", or "organizations" @@ -210,7 +210,7 @@ PASSWD = ; For "postgres" only, either "disable", "require" or "verify-full" SSL_MODE = disable ; For "sqlite3" and "tidb", use absolute path when you start gitea as service -PATH = data/gitea.db +PATH = /var/lib/gitea/gitea.db ; For "sqlite3" only. Query timeout SQLITE_TIMEOUT = 500 ; For iterate buffer, default is 50 @@ -435,7 +435,7 @@ MAX_FILES = 5 FORMAT = [log] -ROOT_PATH = +ROOT_PATH = /var/log/gitea ; Either "console", "file", "conn", "smtp" or "database", default is "console" ; Use comma to separate multiple modes, e.g. "console, file" MODE = console -- 2.18.0