aboutsummarylogtreecommitdiffstats
path: root/0001-Adjust-config-for-Arch-Linux-package.patch
blob: 721d7d16d74640c0a29dc9df34ecc64a68550a00 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
From 371b5cfba7b3fa111cc24807b77b12b983f6f9b1 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 | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/conf/app.ini b/conf/app.ini
index f58e60d4e..690273b38 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -6,7 +6,7 @@
 BRAND_NAME = Gogs
 ; The system user who should be running the applications. It has no effect on Windows,
 ; otherwise, it should match the value of $USER environment variable.
-RUN_USER = git
+RUN_USER = gogs
 ; The running mode of the application, can be either "dev", "prod" or "test".
 RUN_MODE = dev
 
@@ -29,8 +29,8 @@ HTTP_PORT = 3000
 ; 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
 ; The minimum allowed TLS version, currently supports "TLS10", "TLS11", "TLS12", and "TLS13".
 TLS_MIN_VERSION = TLS12
 ; File permission when serve traffic via Unix domain socket.
@@ -48,7 +48,7 @@ DISABLE_ROUTER_LOG = true
 ENABLE_GZIP = false
 
 ; The path for storing application specific data.
-APP_DATA_PATH = data
+APP_DATA_PATH = /var/lib/gogs/data
 ; Whether to enable to load assets (i.e. "conf", "templates", "public") from disk instead of embedded bindata.
 LOAD_ASSETS_FROM_DISK = false
 
@@ -91,7 +91,7 @@ DSA     = 1024
 
 [repository]
 ; The root path for storing managed repositories, default is "~/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.
@@ -126,7 +126,7 @@ PREVIEWABLE_FILE_MODES = markdown
 ; Whether to enable repository file uploads.
 ENABLED = true
 ; The path to temporarily store uploads (content under this path gets wiped out on 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 to allow any file type.
 ALLOWED_TYPES =
 ; The maximum size of each file in MB.
@@ -145,7 +145,7 @@ PASSWORD =
 ; For "postgres" only, either "disable", "require" or "verify-full".
 SSL_MODE = disable
 ; For "sqlite3" only, make sure to use absolute path.
-PATH = data/gogs.db
+PATH = /var/lib/gogs/gogs.db
 ; The maximum open connections of the pool.
 MAX_OPEN_CONNS = 30
 ; The maximum idle connections of the pool.
@@ -273,7 +273,7 @@ OBJECTS_PATH = data/lfs-objects
 ; Whether to enabled upload attachments in general.
 ENABLED = true
 ; The path to store attachments on the file system.
-PATH = data/attachments
+PATH = /var/lib/gogs/attachments
 ; File types that are allowed to be uploaded, e.g. "image/jpeg|image/png". Leave empty to allow any file type.
 ALLOWED_TYPES = image/jpeg|image/png
 ; The maximum size of each file in MB.
@@ -300,7 +300,7 @@ FORMAT = RFC1123
 
 [picture]
 ; The path to store user avatars on the file system.
-AVATAR_UPLOAD_PATH = data/avatars
+AVATAR_UPLOAD_PATH = /var/lib/gogs/avatars
 ; The path to store repository avatars on the file system.
 REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
 ; Chinese users can use a custom avatar source, such as http://cn.gravatar.com/avatar/.
@@ -347,7 +347,7 @@ PAGING_NUM = 10
 ; General settings of loggers.
 [log]
 ; The root path for all log files, default is "log/" subdirectory.
-ROOT_PATH =
+ROOT_PATH = /var/log/gogs
 ; Can be "console", "file", "slack" and "discord".
 ; Use comma to separate multiple modes, e.g. "console, file"
 MODE = console
-- 
2.28.0