gitea: update to 1.3.2

This commit is contained in:
Michael Aldridge 2018-01-30 23:37:10 -08:00
parent 6d304d8418
commit 7063f8a526
2 changed files with 41 additions and 44 deletions

View file

@ -1,5 +1,5 @@
--- conf/app.ini.orig 2017-10-19 23:49:52.358629509 -0700 --- conf/app.ini.orig 2018-01-31 19:52:51.508685405 -0800
+++ conf/app.ini 2017-10-19 23:50:36.007964774 -0700 +++ conf/app.ini 2018-01-31 20:00:47.790142769 -0800
@@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
; App name that shows on every page title ; App name that shows on every page title
APP_NAME = Gitea: Git with a cup of tea APP_NAME = Gitea: Git with a cup of tea
@ -16,14 +16,7 @@
SCRIPT_TYPE = bash SCRIPT_TYPE = bash
; Default ANSI charset ; Default ANSI charset
ANSI_CHARSET = ANSI_CHARSET =
@@ -34,13 +34,13 @@ @@ -42,7 +42,7 @@
[repository.local]
; Path for uploads. Defaults to `tmp/local-repo`
-LOCAL_COPY_PATH = tmp/local-repo
+LOCAL_COPY_PATH = /var/lib/gitea/tmp/local-repo
[repository.upload]
; Whether repository file uploads are enabled. Defaults to `true` ; Whether repository file uploads are enabled. Defaults to `true`
ENABLED = true ENABLED = true
; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart) ; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
@ -32,7 +25,7 @@
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type ; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
ALLOWED_TYPES = ALLOWED_TYPES =
; Max size of each file in MB. Defaults to 3MB ; Max size of each file in MB. Defaults to 3MB
@@ -102,7 +102,7 @@ @@ -104,7 +104,7 @@
HTTP_ADDR = 0.0.0.0 HTTP_ADDR = 0.0.0.0
HTTP_PORT = 3000 HTTP_PORT = 3000
; Permission for unix socket ; Permission for unix socket
@ -41,7 +34,7 @@
; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service. ; 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. ; In most cases you do not need to change the default value.
; Alter it only if your SSH server node is not the same as HTTP node. ; Alter it only if your SSH server node is not the same as HTTP node.
@@ -116,11 +116,11 @@ @@ -120,11 +120,11 @@
; Network interface builtin SSH server listens on ; Network interface builtin SSH server listens on
SSH_LISTEN_HOST = SSH_LISTEN_HOST =
; Port number to be exposed in clone URL ; Port number to be exposed in clone URL
@ -52,19 +45,19 @@
; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. ; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
-SSH_ROOT_PATH = -SSH_ROOT_PATH =
+SSH_ROOT_PATH = /var/lib/gitea/ssh +SSH_ROOT_PATH = /var/lib/gitea/ssh
; Directory to create temporary files when test public key using ssh-keygen, ; For built-in SSH server only, choose the ciphers to support for SSH connections,
; default is system temporary directory. ; for system SSH this setting has no effect
SSH_KEY_TEST_PATH = SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
@@ -148,7 +148,7 @@ @@ -146,7 +146,7 @@
; default is the path where Gitea is executed ; Indicate whether to check minimum key size with corresponding type
STATIC_ROOT_PATH = MINIMUM_KEY_SIZE_CHECK = false
; Default path for App data ; Disable CDN even in "prod" mode
-APP_DATA_PATH = data -OFFLINE_MODE = false
+APP_DATA_PATH = /var/lib/gitea/data +OFFLINE_MODE = true
; Application level GZIP support DISABLE_ROUTER_LOG = false
ENABLE_GZIP = false ; Generate steps:
; Landing page for non-logged users, can be "home" or "explore" ; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com
@@ -156,7 +156,7 @@ @@ -169,7 +169,7 @@
; Enables git-lfs support. true or false, default is false. ; Enables git-lfs support. true or false, default is false.
LFS_START_SERVER = false LFS_START_SERVER = false
; Where your lfs files put on, default is data/lfs. ; Where your lfs files put on, default is data/lfs.
@ -73,7 +66,7 @@
; LFS authentication secret, changed this to yourself. ; LFS authentication secret, changed this to yourself.
LFS_JWT_SECRET = LFS_JWT_SECRET =
@@ -177,12 +177,12 @@ @@ -190,14 +190,14 @@
; For "postgres" only, either "disable", "require" or "verify-full" ; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable SSL_MODE = disable
; For "sqlite3" and "tidb", use absolute path when you start as service ; For "sqlite3" and "tidb", use absolute path when you start as service
@ -81,14 +74,16 @@
+PATH = /var/lib/gitea/data/gitea.db +PATH = /var/lib/gitea/data/gitea.db
; For "sqlite3" only. Query timeout ; For "sqlite3" only. Query timeout
SQLITE_TIMEOUT = 500 SQLITE_TIMEOUT = 500
; For iterate buffer, default is 50
ITERATE_BUFFER_SIZE = 50
[indexer] [indexer]
-ISSUE_INDEXER_PATH = indexers/issues.bleve -ISSUE_INDEXER_PATH = indexers/issues.bleve
+ISSUE_INDEXER_PATH = /var/lib/gitea/indexers/issues.bleve +ISSUE_INDEXER_PATH = /var/lib/gitea/indexers/issues.bleve
UPDATE_BUFFER_LEN = 20 ; repo indexer by default disabled, since it uses a lot of disk space
REPO_INDEXER_ENABLED = false
[admin] REPO_INDEXER_PATH = indexers/repos.bleve
@@ -193,7 +193,7 @@ @@ -212,7 +212,7 @@
; Whether the installer is disabled ; Whether the installer is disabled
INSTALL_LOCK = false INSTALL_LOCK = false
; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!! ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
@ -97,7 +92,7 @@
; Auto-login remember days ; Auto-login remember days
LOGIN_REMEMBER_DAYS = 7 LOGIN_REMEMBER_DAYS = 7
COOKIE_USERNAME = gitea_awesome COOKIE_USERNAME = gitea_awesome
@@ -323,13 +323,13 @@ @@ -355,13 +355,13 @@
[session] [session]
; Either "memory", "file", or "redis", default is "memory" ; Either "memory", "file", or "redis", default is "memory"
@ -113,7 +108,7 @@
; Session cookie name ; Session cookie name
COOKIE_NAME = i_like_gitea COOKIE_NAME = i_like_gitea
; If you use session in https only, default is false ; If you use session in https only, default is false
@@ -342,7 +342,7 @@ @@ -374,7 +374,7 @@
SESSION_LIFE_TIME = 86400 SESSION_LIFE_TIME = 86400
[picture] [picture]
@ -122,7 +117,7 @@
; Chinese users can choose "duoshuo" ; Chinese users can choose "duoshuo"
; or a custom avatar source, like: http://cn.gravatar.com/avatar/ ; or a custom avatar source, like: http://cn.gravatar.com/avatar/
GRAVATAR_SOURCE = gravatar GRAVATAR_SOURCE = gravatar
@@ -357,7 +357,7 @@ @@ -389,7 +389,7 @@
; Whether attachments are enabled. Defaults to `true` ; Whether attachments are enabled. Defaults to `true`
ENABLE = true ENABLE = true
; Path for attachments. Defaults to `data/attachments` ; Path for attachments. Defaults to `data/attachments`
@ -131,12 +126,12 @@
; One or more allowed types, e.g. image/jpeg|image/png ; One or more allowed types, e.g. image/jpeg|image/png
ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip
; Max size of each file. Defaults to 32MB ; Max size of each file. Defaults to 32MB
@@ -372,14 +372,14 @@ @@ -404,10 +404,10 @@
FORMAT = FORMAT =
[log] [log]
-ROOT_PATH = -ROOT_PATH =
+ROOT_PATH = /var/log/gitea/ +ROOT_PATH = /var/log/gitea
; Either "console", "file", "conn", "smtp" or "database", default is "console" ; Either "console", "file", "conn", "smtp" or "database", default is "console"
; Use comma to separate multiple modes, e.g. "console, file" ; Use comma to separate multiple modes, e.g. "console, file"
-MODE = console -MODE = console
@ -144,12 +139,7 @@
; Buffer length of channel, keep it as it is if you don't know what it is. ; Buffer length of channel, keep it as it is if you don't know what it is.
BUFFER_LEN = 10000 BUFFER_LEN = 10000
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace" ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
-LEVEL = Trace @@ -419,7 +419,7 @@
+LEVEL = Info
; For "console" mode only
[log.console]
@@ -387,7 +387,7 @@
; For "file" mode only ; For "file" mode only
[log.file] [log.file]
@ -158,3 +148,10 @@
; This enables automated log rotate(switch of following options), default is true ; This enables automated log rotate(switch of following options), default is true
LOG_ROTATE = true LOG_ROTATE = true
; Max line number of single file, default is 1000000 ; Max line number of single file, default is 1000000
@@ -581,4 +581,4 @@
; External command to render all matching extensions
RENDER_COMMAND = "asciidoc --out-file=- -"
; Input is not a standard input but a file
-IS_INPUT_FILE = false
\ No newline at end of file
+IS_INPUT_FILE = false

View file

@ -1,7 +1,7 @@
# Template file for 'gitea' # Template file for 'gitea'
pkgname=gitea pkgname=gitea
version=1.2.3 version=1.3.2
revision=3 revision=1
build_style=go build_style=go
go_import_path="code.gitea.io/gitea" go_import_path="code.gitea.io/gitea"
# This could be done with build options, but these are built in with the # This could be done with build options, but these are built in with the
@ -28,7 +28,7 @@ maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="MIT" license="MIT"
homepage="http://gitea.io" homepage="http://gitea.io"
distfiles="https://github.com/go-gitea/gitea/archive/v${version}.tar.gz" distfiles="https://github.com/go-gitea/gitea/archive/v${version}.tar.gz"
checksum=cea707156393a52bc77cb493467b7f04c8b6e7d1fd92cd775a8b587f9c35340e checksum=9a351e41aabc0870d435caf2f09d2a76652e67c901ca0156e29e4b87eccc15ff
system_accounts="_gitea" system_accounts="_gitea"
_gitea_homedir="/var/lib/gitea" _gitea_homedir="/var/lib/gitea"