aboutsummarylogtreecommitdiffstats
path: root/0001-Adjust-config-for-Arch-Linux-package.patch
blob: 83ffcff7bd6ff29e42a039e43f224f6e02cd8add (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
From 4c68726e20939338d196bdd6b0cc4e6cf69ce642 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 19 Mar 2017 18:03:36 +0100
Subject: [PATCH 1/2] Adjust config for Arch Linux package

---
 conf/app.ini | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/conf/app.ini b/conf/app.ini
index fc43868e..b170dd5f 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -5,7 +5,7 @@
 ; App name that shows on every page title
 APP_NAME = Gogs
 ; The name of the system user that runs Gogs
-RUN_USER = git
+RUN_USER = gogs
 ; Either "dev", "prod" or "test"
 RUN_MODE = dev
 
@@ -54,16 +54,16 @@ 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/gogs/cert/cert.pem
+KEY_FILE = /var/lib/gogs/cert/key.pem
 ; Allowed TLS version values: SSL30, TLS10, TLS11, TLS12
 TLS_MIN_VERSION = TLS10
 
 ; Upper level of template and static file path
 ; default is the path where Gogs is executed
-STATIC_ROOT_PATH =
+STATIC_ROOT_PATH = /usr/share/gogs
 ; Default path for App data
-APP_DATA_PATH = data
+APP_DATA_PATH = /var/lib/gogs/data
 ; Application level GZIP support
 ENABLE_GZIP = false
 ; Landing page for non-logged users, can be "home" or "explore"
@@ -71,7 +71,7 @@ LANDING_PAGE = home
 
 [repository]
 ; Root path for storing repositories's data, default is "~/<username>/gogs-repositories"
-ROOT =
+ROOT = /var/lib/gogs/repos
 ; The script type server supports, sometimes could be "sh"
 SCRIPT_TYPE = bash
 ; Default ANSI charset for an unrecognized charset
@@ -111,7 +111,7 @@ PREVIEWABLE_FILE_MODES = markdown
 ; Enable repository file uploads.
 ENABLED = true
 ; Path to temporarily store uploads (default path gets cleaned by Gogs in every start)
-TEMP_PATH = data/tmp/uploads
+TEMP_PATH = /var/cache/gogs
 ; File types that are allowed to be uploaded, e.g. image/jpeg|image/png. Leave empty means allow any file type
 ALLOWED_TYPES =
 ; Maximum size of each file in MB
@@ -170,7 +170,7 @@ PASSWD =
 ; For "postgres" only, either "disable", "require" or "verify-full"
 SSL_MODE = disable
 ; For "sqlite3" and "tidb", use absolute path when you start as service
-PATH = data/gogs.db
+PATH = /var/lib/gogs/gogs.db
 
 [admin]
 ; Disable regular (non-admin) users to create organizations
@@ -315,7 +315,7 @@ FORMAT =
 
 ; General settings of loggers
 [log]
-ROOT_PATH =
+ROOT_PATH = /var/log/gogs
 ; Can be "console" and "file", default is "console"
 ; Use comma to separate multiple modes, e.g. "console, file"
 MODE = console
-- 
2.13.1