218 lines
9.0 KiB
Diff
218 lines
9.0 KiB
Diff
|
diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patched/custom/conf/app.example.ini
|
||
|
--- forgejo-src-8.0.0/custom/conf/app.example.ini 2024-07-30 06:40:03.000000000 +0200
|
||
|
+++ forgejo-src-8.0.0-patched/custom/conf/app.example.ini 2024-08-01 20:24:55.972480197 +0200
|
||
|
@@ -51,7 +51,7 @@
|
||
|
;APP_DISPLAY_NAME_FORMAT = {APP_NAME}: {APP_SLOGAN}
|
||
|
;;
|
||
|
;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally
|
||
|
-RUN_USER = ; git
|
||
|
+RUN_USER = ; forgejo
|
||
|
;;
|
||
|
;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod"
|
||
|
;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use.
|
||
|
@@ -284,15 +284,17 @@
|
||
|
;; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
|
||
|
;; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
|
||
|
;; Paths are relative to CUSTOM_PATH
|
||
|
-;CERT_FILE = https/cert.pem
|
||
|
-;KEY_FILE = https/key.pem
|
||
|
+CERT_FILE = /etc/forgejo/https/cert.pem
|
||
|
+KEY_FILE = /etc/forgejo/https/key.pem
|
||
|
;;
|
||
|
;; Root directory containing templates and static files.
|
||
|
;; default is the path where Gitea is executed
|
||
|
;STATIC_ROOT_PATH = ; Will default to the built-in value _`StaticRootPath`_
|
||
|
+STATIC_ROOT_PATH = /usr/share/forgejo
|
||
|
;;
|
||
|
;; Default path for App data
|
||
|
;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_
|
||
|
+APP_DATA_PATH = /var/lib/forgejo/data
|
||
|
;;
|
||
|
;; Enable gzip compression for runtime-generated content, static resources excluded
|
||
|
;ENABLE_GZIP = false
|
||
|
@@ -304,6 +306,7 @@
|
||
|
;;
|
||
|
;; PPROF_DATA_PATH, use an absolute path when you start gitea as service
|
||
|
;PPROF_DATA_PATH = data/tmp/pprof ; Path is relative to _`AppWorkPath`_
|
||
|
+PPROF_DATA_PATH = /var/lib/forgejo/data/tmp/pprof
|
||
|
;;
|
||
|
;; Landing page, can be "home", "explore", "organizations", "login", or any URL such as "/org/repo" or even "https://anotherwebsite.com"
|
||
|
;; The "login" choice is not a security measure but just a UI flow change, use REQUIRE_SIGNIN_VIEW to force users to log in.
|
||
|
@@ -355,10 +358,10 @@
|
||
|
;;
|
||
|
;; MySQL Configuration
|
||
|
;;
|
||
|
-DB_TYPE = mysql
|
||
|
-HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock
|
||
|
-NAME = gitea
|
||
|
-USER = root
|
||
|
+;DB_TYPE = mysql
|
||
|
+;HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock
|
||
|
+;NAME = forgejo
|
||
|
+;USER = root
|
||
|
;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password.
|
||
|
;SSL_MODE = false ; either "false" (default), "true", or "skip-verify"
|
||
|
;CHARSET_COLLATION = ; Empty as default, Gitea will try to find a case-sensitive collation. Don't change it unless you clearly know what you need.
|
||
|
@@ -369,7 +372,7 @@
|
||
|
;;
|
||
|
;DB_TYPE = postgres
|
||
|
;HOST = 127.0.0.1:5432 ; can use socket e.g. /var/run/postgresql/
|
||
|
-;NAME = gitea
|
||
|
+;NAME = forgejo
|
||
|
;USER = root
|
||
|
;PASSWD =
|
||
|
;SCHEMA =
|
||
|
@@ -379,21 +382,10 @@
|
||
|
;;
|
||
|
;; SQLite Configuration
|
||
|
;;
|
||
|
-;DB_TYPE = sqlite3
|
||
|
-;PATH= ; defaults to data/forgejo.db
|
||
|
-;SQLITE_TIMEOUT = ; Query timeout defaults to: 500
|
||
|
-;SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode
|
||
|
-;;
|
||
|
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
-;;
|
||
|
-;; MSSQL Configuration
|
||
|
-;;
|
||
|
-;DB_TYPE = mssql
|
||
|
-;HOST = 172.17.0.2:1433
|
||
|
-;NAME = gitea
|
||
|
-;USER = SA
|
||
|
-;PASSWD = MwantsaSecurePassword1
|
||
|
-;CHARSET_COLLATION = ; Empty as default, Gitea will try to find a case-sensitive collation. Don't change it unless you clearly know what you need.
|
||
|
+DB_TYPE = sqlite3
|
||
|
+PATH= /var/lib/forgejo/data/forgejo.db ; defaults to data/forgejo.db
|
||
|
+SQLITE_TIMEOUT = ; Query timeout defaults to: 500
|
||
|
+SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode
|
||
|
;;
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;;
|
||
|
@@ -579,14 +571,14 @@
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log
|
||
|
-;ROOT_PATH =
|
||
|
+ROOT_PATH = /var/log/forgejo
|
||
|
;;
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;; Main Logger
|
||
|
;;
|
||
|
;; Either "console", "file" or "conn", default is "console"
|
||
|
;; Use comma to separate multiple modes, e.g. "console, file"
|
||
|
-MODE = console
|
||
|
+MODE = console, file
|
||
|
;;
|
||
|
;; Either "Trace", "Debug", "Info", "Warn", "Error" or "None", default is "Info"
|
||
|
LEVEL = Info
|
||
|
@@ -946,7 +938,7 @@
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories.
|
||
|
;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s
|
||
|
-;ROOT =
|
||
|
+ROOT = /var/lib/forgejo/repositories
|
||
|
;;
|
||
|
;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
|
||
|
;SCRIPT_TYPE = bash
|
||
|
@@ -1065,7 +1057,7 @@
|
||
|
;ENABLED = true
|
||
|
;;
|
||
|
;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart)
|
||
|
-;TEMP_PATH = data/tmp/uploads
|
||
|
+TEMP_PATH = /var/lib/forgejo/data/tmp/uploads
|
||
|
;;
|
||
|
;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
|
||
|
;ALLOWED_TYPES =
|
||
|
@@ -1444,7 +1436,7 @@
|
||
|
;ISSUE_INDEXER_TYPE = bleve
|
||
|
;;
|
||
|
;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
|
||
|
-;ISSUE_INDEXER_PATH = indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_.
|
||
|
+;ISSUE_INDEXER_PATH = /var/lib/forgejo/indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_.
|
||
|
;;
|
||
|
;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch (e.g. http://elastic:password@localhost:9200) or meilisearch (e.g. http://:apikey@localhost:7700)
|
||
|
;ISSUE_INDEXER_CONN_STR =
|
||
|
@@ -1471,7 +1463,7 @@
|
||
|
;REPO_INDEXER_TYPE = bleve
|
||
|
;;
|
||
|
;; Index file used for code search. available when `REPO_INDEXER_TYPE` is bleve
|
||
|
-;REPO_INDEXER_PATH = indexers/repos.bleve
|
||
|
+;REPO_INDEXER_PATH = /var/lib/forgejo/indexers/repos.bleve
|
||
|
;;
|
||
|
;; Code indexer connection string, available when `REPO_INDEXER_TYPE` is elasticsearch. i.e. http://elastic:changeme@localhost:9200
|
||
|
;REPO_INDEXER_CONN_STR =
|
||
|
@@ -1510,6 +1502,7 @@
|
||
|
;;
|
||
|
;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared.
|
||
|
;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
|
||
|
+DATADIR = /var/lib/forgejo/queues/
|
||
|
;;
|
||
|
;; Default queue length before a channel queue will block
|
||
|
;LENGTH = 100000
|
||
|
@@ -1852,7 +1845,7 @@
|
||
|
;; file: session file path, e.g. `data/sessions`
|
||
|
;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` (or `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` for a Redis cluster)
|
||
|
;; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
|
||
|
-;PROVIDER_CONFIG = data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_.
|
||
|
+;PROVIDER_CONFIG = /var/lib/forgejo/data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_.
|
||
|
;;
|
||
|
;; Session cookie name
|
||
|
;COOKIE_NAME = i_like_gitea
|
||
|
@@ -1939,7 +1932,7 @@
|
||
|
;;
|
||
|
;; Path for attachments. Defaults to `attachments`. Only available when STORAGE_TYPE is `local`
|
||
|
;; Relative paths will be resolved to `${AppDataPath}/${attachment.PATH}`
|
||
|
-;PATH = attachments
|
||
|
+PATH = /var/lib/forgejo/data/attachments
|
||
|
;;
|
||
|
;; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
|
||
|
;MINIO_ENDPOINT = localhost:9000
|
||
|
@@ -1965,7 +1958,7 @@
|
||
|
;MINIO_LOCATION = us-east-1
|
||
|
;;
|
||
|
;; Minio base path on the bucket only available when STORAGE_TYPE is `minio`
|
||
|
-;MINIO_BASE_PATH = attachments/
|
||
|
+;MINIO_BASE_PATH = /var/lib/forgejo/attachments/
|
||
|
;;
|
||
|
;; Minio enabled ssl only available when STORAGE_TYPE is `minio`
|
||
|
;MINIO_USE_SSL = false
|
||
|
@@ -2548,10 +2541,10 @@
|
||
|
;;
|
||
|
;STORAGE_TYPE = local
|
||
|
;; override the minio base path if storage type is minio
|
||
|
-;MINIO_BASE_PATH = packages/
|
||
|
+;MINIO_BASE_PATH = /var/lib/forgejo/packages/
|
||
|
;;
|
||
|
;; Path for chunked uploads. Defaults to APP_DATA_PATH + `tmp/package-upload`
|
||
|
-;CHUNKED_UPLOAD_PATH = tmp/package-upload
|
||
|
+;CHUNKED_UPLOAD_PATH = /var/lib/forgejo/tmp/package-upload
|
||
|
;;
|
||
|
;; Maximum count of package versions a single owner can have (`-1` means no limits)
|
||
|
;LIMIT_TOTAL_OWNER_COUNT = -1
|
||
|
@@ -2618,10 +2611,10 @@
|
||
|
;STORAGE_TYPE = local
|
||
|
;;
|
||
|
;; Where your lfs files reside, default is data/lfs.
|
||
|
-;PATH = data/repo-archive
|
||
|
+;PATH = /var/lib/forgejo/data/repo-archive
|
||
|
;;
|
||
|
;; override the minio base path if storage type is minio
|
||
|
-;MINIO_BASE_PATH = repo-archive/
|
||
|
+;MINIO_BASE_PATH = /var/lib/forgejo/repo-archive/
|
||
|
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
@@ -2641,10 +2634,10 @@
|
||
|
;STORAGE_TYPE = local
|
||
|
;;
|
||
|
;; Where your lfs files reside, default is data/lfs.
|
||
|
-;PATH = data/lfs
|
||
|
+;PATH = /var/lib/forgejo/data/lfs
|
||
|
;;
|
||
|
;; override the minio base path if storage type is minio
|
||
|
-;MINIO_BASE_PATH = lfs/
|
||
|
+;MINIO_BASE_PATH = /var/lib/forgejo/lfs/
|
||
|
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|