PKGBUILDs/gitea/default/0001-Adjust-config-for-Arch...

68 lines
2.1 KiB
Diff
Raw Permalink Normal View History

2018-08-27 22:18:56 +02:00
From b5974b77f2852bd31a9505172010fd92f09cff24 Mon Sep 17 00:00:00 2001
2017-06-16 22:51:17 +02:00
From: Martchus <martchus@gmx.net>
Date: Sun, 19 Mar 2017 18:03:36 +0100
Subject: [PATCH 1/2] Adjust config for Arch Linux package
---
2018-06-10 20:43:02 +02:00
custom/conf/app.ini.sample | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
2017-06-16 22:51:17 +02:00
2018-06-10 20:43:02 +02:00
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
2018-08-27 22:18:56 +02:00
index 774a1df59..f46f803cd 100644
2018-06-10 20:43:02 +02:00
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
2018-08-27 22:18:56 +02:00
@@ -7,12 +7,12 @@
; App name that shows in every page title
2017-06-16 22:51:17 +02:00
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 =
2018-08-27 22:18:56 +02:00
@@ -172,13 +172,13 @@ DISABLE_ROUTER_LOG = false
2017-06-16 22:51:17 +02:00
; 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
2018-08-27 22:18:56 +02:00
; Root directory containing templates and static files.
2017-06-16 22:51:17 +02:00
; default is the path where Gitea is executed
2018-06-10 20:43:02 +02:00
-STATIC_ROOT_PATH =
+STATIC_ROOT_PATH = /usr/share/gitea
2017-06-16 22:51:17 +02:00
; Default path for App data
-APP_DATA_PATH = data
+APP_DATA_PATH = /var/lib/gitea/data
; Application level GZIP support
ENABLE_GZIP = false
2018-06-10 20:43:02 +02:00
; Landing page, can be "home", "explore", or "organizations"
2018-08-27 22:18:56 +02:00
@@ -210,7 +210,7 @@ PASSWD =
2017-06-16 22:51:17 +02:00
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
2018-08-27 22:18:56 +02:00
; For "sqlite3" and "tidb", use absolute path when you start gitea as service
2017-06-16 22:51:17 +02:00
-PATH = data/gitea.db
+PATH = /var/lib/gitea/gitea.db
2018-06-10 20:43:02 +02:00
; For "sqlite3" only. Query timeout
SQLITE_TIMEOUT = 500
; For iterate buffer, default is 50
2018-08-27 22:18:56 +02:00
@@ -435,7 +435,7 @@ MAX_FILES = 5
2017-06-16 22:51:17 +02:00
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
--
2018-08-27 22:18:56 +02:00
2.18.0
2017-06-16 22:51:17 +02:00