--- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -15,7 +15,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. Either "dev", "prod" or "test", default is "prod" RUN_MODE = ; prod @@ -68,7 +68,7 @@ RUN_MODE = ; prod ;PER_WRITE_PER_KB_TIMEOUT = 30s ;; ;; Permission for unix socket -;UNIX_SOCKET_PERMISSION = 666 +UNIX_SOCKET_PERMISSION = 660 ;; ;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service. ;; In most cases you do not need to change the default value. @@ -101,7 +101,7 @@ RUN_MODE = ; prod ;SSH_LISTEN_PORT = %(SSH_PORT)s ;; ;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. -;SSH_ROOT_PATH = +SSH_ROOT_PATH = /var/lib/gitea ;; ;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server ;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off. @@ -221,7 +221,7 @@ RUN_MODE = ; prod ;; ;; Root directory containing templates and static files. ;; default is the path where Gitea is executed -;STATIC_ROOT_PATH = +STATIC_ROOT_PATH = /var/lib/gitea ;; ;; Default path for App data ;APP_DATA_PATH = data @@ -284,10 +284,10 @@ LFS_JWT_SECRET = ;; ;; 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 = gitea +;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 = utf8mb4 ;either "utf8" or "utf8mb4", default is "utf8mb4". @@ -310,8 +310,8 @@ USER = root ;; ;; SQLite Configuration ;; -;DB_TYPE = sqlite3 -;PATH= ; defaults to data/gitea.db +DB_TYPE = sqlite3 +PATH = /var/lib/gitea/data/gitea.db ;SQLITE_TIMEOUT = ; Query timeout defaults to: 500 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -495,7 +495,7 @@ APP_ID = ; e.g. http://localhost:3000/ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log -;ROOT_PATH = +ROOT_PATH = /var/log/gitea ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Main Logger @@ -818,7 +818,8 @@ ROUTER = console ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)/gitea-repositories. ;; A relative path is interpreted as %(GITEA_WORK_DIR)/%(ROOT) -;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 @@ -916,7 +917,7 @@ ROUTER = console ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Path for local repository copy. Defaults to `tmp/local-repo` (content gets deleted on gitea restart) -;LOCAL_COPY_PATH = tmp/local-repo +LOCAL_COPY_PATH = /var/lib/gitea/tmp/local-repo ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -928,7 +929,7 @@ ROUTER = console ;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/gitea/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 = @@ -1264,7 +1265,7 @@ ROUTER = console ;ISSUE_INDEXER_TYPE = bleve ;; ;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve -;ISSUE_INDEXER_PATH = indexers/issues.bleve +ISSUE_INDEXER_PATH = /var/lib/gitea/indexers/issues.bleve ;; ;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch ;ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200 @@ -1650,7 +1651,7 @@ ROUTER = console ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -;AVATAR_UPLOAD_PATH = data/avatars +AVATAR_UPLOAD_PATH = /var/lib/gitea/data/avatars ;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars ;; ;; How Gitea deals with missing repository avatars @@ -2298,7 +2299,7 @@ ROUTER = console ;STORAGE_TYPE = local ;; ;; Where your lfs files reside, default is data/lfs. -;PATH = data/lfs +PATH = /var/lib/gitea/lfs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;