* Changelog for 1.24.0 (#34543) * Fix: skip paths check on tag push events in workflows (#34602) (#34670) * Fix last admin check when syncing users (#34649) (#34673) * Fix footnote jump behavior on the issue page. (#34621) (#34669) * Fix "oras" OCI client compatibility (#34666) (#34671) * Only activity tab needs heatmap data loading (#34652) (#34668) * Ignore "Close" error when uploading container blob (#34620) (#34665) * Fix missed merge commit sha and time when migrating from codecommit (#34645) (#34650) * Fix GetUsersByEmails (#34643) (#34646) * Misc CSS fixes (#34638) (#34644) * add codecommit to supported services in api docs (#34626) (#34633) * Validate hex colors when creating/editing labels (#34623) (#34630) * bump to alpine 3.22 (#34613) (#34615) * Fix possible pull request broken when leave the page immediately after clicking the update button (#34509) (#34607) * Fix margin issue in markup paragraph rendering (#34599) (#34606) * Fix migration pull request title too long (#34577) (#34604) * Fix issue label delete incorrect labels webhook payload (#34575) (#34603) * Make pull request and issue history more compact (#34588) (#34594) * fixed incorrect page navigation with up and down arrow on last item of dashboard repos (#34570) (#34596) * Fix doctor deleting orphaned issues attachments (#34142) (#34571) * Fix/improve avatar sync from LDAP (#34573) (#34587) * Fix some trivial problems (#34579) (#34585) * Retain issue sort type when a keyword search is introduced (#34559) (#34581) * Always use an empty line to separate the commit message and trailer (#34512) (#34578) * Fix line-button issue after file selection in file tree (#34574) (#34576) * Fix possible nil description of pull request when migrating from CodeCommit (#34541) (#34550) * Add webhook assigning test and fix possible bug (#34420) (#34551) * Refactor commit reader (#34542) (#34549) * Don't display error log when .git-blame-ignore-revs doesn't exist (#34457) (#34540) OBS-URL: https://build.opensuse.org/package/show/home:ecsos:server/gitea?expand=0&rev=369
190 lines
8.3 KiB
Diff
190 lines
8.3 KiB
Diff
Index: gitea-1.24.0/custom/conf/app.example.ini
|
|
===================================================================
|
|
--- gitea-1.24.0.orig/custom/conf/app.example.ini
|
|
+++ gitea-1.24.0/custom/conf/app.example.ini
|
|
@@ -44,7 +44,7 @@
|
|
APP_NAME = ; Gitea: Git with a cup of tea
|
|
;;
|
|
;; 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 = ; gitea
|
|
;;
|
|
;; 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.
|
|
@@ -283,15 +283,17 @@ RUN_USER = ; git
|
|
;; $ 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/gitea/https/cert.pem
|
|
+KEY_FILE = /etc/gitea/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/gitea
|
|
;;
|
|
;; Default path for App data
|
|
;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_
|
|
+APP_DATA_PATH = /var/lib/gitea/data
|
|
;;
|
|
;; Base path for App's temp files, leave empty to use the managed tmp directory in APP_DATA_PATH
|
|
;APP_TEMP_PATH =
|
|
@@ -306,6 +308,7 @@ RUN_USER = ; git
|
|
;;
|
|
;; 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/gitea/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.
|
|
@@ -388,7 +391,7 @@ USER = root
|
|
;; SQLite Configuration
|
|
;;
|
|
;DB_TYPE = sqlite3
|
|
-;PATH= ; defaults to data/gitea.db
|
|
+;PATH= /var/lib/gitea/data/gitea.db ; defaults to data/gitea.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
|
|
;;
|
|
@@ -595,14 +598,14 @@ ENABLED = true
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Root path for the log files - defaults to "{AppWorkPath}/log"
|
|
-;ROOT_PATH =
|
|
+ROOT_PATH = /var/log/gitea
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; 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
|
|
@@ -988,7 +991,7 @@ LEVEL = Info
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Root path for storing all repository data. By default, it is set to "{APP_DATA_PATH}/gitea-repositories".
|
|
;; A relative path is interpreted as "{AppWorkPath}/{ROOT}" (use AppWorkPath as base path).
|
|
-;ROOT =
|
|
+ROOT = /var/lib/gitea/repositories
|
|
;;
|
|
;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
|
|
;SCRIPT_TYPE = bash
|
|
@@ -1485,7 +1488,7 @@ LEVEL = Info
|
|
;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/gitea/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 =
|
|
@@ -1512,7 +1515,7 @@ LEVEL = Info
|
|
;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/gitea/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 =
|
|
@@ -1551,6 +1554,7 @@ LEVEL = Info
|
|
;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared.
|
|
;; Relative paths will be made absolute against "APP_DATA_PATH"
|
|
;DATADIR = queues/
|
|
+DATADIR = /var/lib/gitea/queues/
|
|
;;
|
|
;; Default queue length before a channel queue will block
|
|
;LENGTH = 100000
|
|
@@ -1905,7 +1909,7 @@ LEVEL = Info
|
|
;; 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/gitea/data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_.
|
|
;;
|
|
;; Session cookie name
|
|
;COOKIE_NAME = i_like_gitea
|
|
@@ -1928,8 +1932,8 @@ LEVEL = Info
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
-;AVATAR_UPLOAD_PATH = data/avatars
|
|
-;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
|
|
+AVATAR_UPLOAD_PATH = /var/lib/gitea/data/avatars
|
|
+REPOSITORY_AVATAR_UPLOAD_PATH = /var/lib/gitea/data/repo-avatars
|
|
;;
|
|
;; How Gitea deals with missing repository avatars
|
|
;; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used
|
|
@@ -1992,7 +1996,7 @@ LEVEL = Info
|
|
;;
|
|
;; 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/gitea/data/attachments
|
|
;;
|
|
;; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
|
|
;MINIO_ENDPOINT = localhost:9000
|
|
@@ -2020,7 +2024,7 @@ LEVEL = Info
|
|
;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/gitea/attachments/
|
|
;;
|
|
;; Minio enabled ssl only available when STORAGE_TYPE is `minio`
|
|
;MINIO_USE_SSL = false
|
|
@@ -2608,9 +2612,9 @@ LEVEL = Info
|
|
;;
|
|
;STORAGE_TYPE = local
|
|
;; override the minio base path if storage type is minio
|
|
-;MINIO_BASE_PATH = packages/
|
|
+;MINIO_BASE_PATH = /var/lib/gitea/packages/
|
|
;; override the azure blob base path if storage type is azureblob
|
|
-;AZURE_BLOB_BASE_PATH = packages/
|
|
+;AZURE_BLOB_BASE_PATH = /var/lib/gitea/packages/
|
|
;; Allows the storage driver to redirect to authenticated URLs to serve files directly
|
|
;; Currently, only `minio` and `azureblob` is supported.
|
|
;SERVE_DIRECT = false
|
|
@@ -2681,12 +2685,12 @@ LEVEL = Info
|
|
;STORAGE_TYPE = local
|
|
;;
|
|
;; Where your lfs files reside, default is data/lfs.
|
|
-;PATH = data/repo-archive
|
|
+;PATH = /var/lib/gitea/data/repo-archive
|
|
;;
|
|
;; override the minio base path if storage type is minio
|
|
-;MINIO_BASE_PATH = repo-archive/
|
|
+;MINIO_BASE_PATH = /var/lib/gitea/repo-archive/
|
|
;; override the azure blob base path if storage type is azureblob
|
|
-;AZURE_BLOB_BASE_PATH = repo-archive/
|
|
+;AZURE_BLOB_BASE_PATH = /var/lib/gitea/repo-archive/
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
@@ -2706,17 +2710,17 @@ LEVEL = Info
|
|
;STORAGE_TYPE = local
|
|
;;
|
|
;; Where your lfs files reside, default is data/lfs.
|
|
-;PATH = data/lfs
|
|
+;PATH = /var/lib/gitea/data/lfs
|
|
;;
|
|
;; Allows the storage driver to redirect to authenticated URLs to serve files directly
|
|
;; Currently, only `minio` and `azureblob` is supported.
|
|
;SERVE_DIRECT = false
|
|
;;
|
|
;; override the minio base path if storage type is minio
|
|
-;MINIO_BASE_PATH = lfs/
|
|
+;MINIO_BASE_PATH = /var/lib/gitea/lfs/
|
|
;;
|
|
;; override the azure blob base path if storage type is azureblob
|
|
-;AZURE_BLOB_BASE_PATH = lfs/
|
|
+;AZURE_BLOB_BASE_PATH = /var/lib/gitea/lfs/
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|