aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Fanninger2016-08-10 23:36:44 +0200
committerThomas Fanninger2016-08-10 23:36:44 +0200
commit8d9e76218d9e168d7293594cc4b604bdfc5c907b (patch)
tree6ffa8f6537a28205959e81ed2e988660f5575d26
parent39db0512643f1e6ba66cdaaf82a5d9987817adc5 (diff)
downloadaur-8d9e76218d9e168d7293594cc4b604bdfc5c907b.tar.gz
Version 0.9.71
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD6
-rw-r--r--app.ini.patch18
-rw-r--r--app_new.ini64
-rw-r--r--app_old.ini66
5 files changed, 116 insertions, 48 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1af2549fd0ba..0c280bb4f220 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Mon Aug 8 14:50:55 UTC 2016
+# Wed Aug 10 21:36:23 UTC 2016
pkgbase = gogs
pkgdesc = Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language.
- pkgver = 0.9.60
+ pkgver = 0.9.71
pkgrel = 2
epoch = 1
url = http://gogs.io/
@@ -32,10 +32,10 @@ pkgbase = gogs
backup = srv/gogs/conf/app.ini
source = gogs.service.patch
source = app.ini.patch
- source = gogs::https://github.com/gogits/gogs/archive/v0.9.60.tar.gz
+ source = gogs::https://github.com/gogits/gogs/archive/v0.9.71.tar.gz
sha512sums = 834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
- sha512sums = 77589148ac4afe09bb1b3f70491fa3b1838299f02216b2a24598f0f468356b2cfbaae397cc693e93f406e1c537d5ae24bc51530d9826879d201b72b19bee376c
- sha512sums = 687824fb79a7a02b9fde047c7749af0b2d91925ca5ac0d828143ef7358e029bf0c775280e162a143ed9946eebf30624b7dddcbc3462fc08c252e280ec944dafc
+ sha512sums = b0891aaa5bb4d220fc84469e21b867d7432a269e50c44920b178b099b04b11509bdfd5500506faf3baa9ac8030f3fa845824c21e66ff26ac343d3113ae0b6396
+ sha512sums = d9f77dccb86a8e49868047aa6e162cb04c1e2f80891d1378a225c8abf47b03335c3dea64a11971f2d5df4a36bb4e37219e2e4591782a8d2142fe21554959325b
pkgname = gogs
diff --git a/PKGBUILD b/PKGBUILD
index de3370b6754c..fd3bce7facf0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=gogs
_pkgname=${pkgname}
-pkgver=0.9.60
+pkgver=0.9.71
pkgrel=2
epoch=1
pkgdesc="Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language."
@@ -31,8 +31,8 @@ source=('gogs.service.patch'
"$_pkgname::https://${_gourl}/archive/v${pkgver}.tar.gz")
sha512sums=(834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
- 77589148ac4afe09bb1b3f70491fa3b1838299f02216b2a24598f0f468356b2cfbaae397cc693e93f406e1c537d5ae24bc51530d9826879d201b72b19bee376c
- 687824fb79a7a02b9fde047c7749af0b2d91925ca5ac0d828143ef7358e029bf0c775280e162a143ed9946eebf30624b7dddcbc3462fc08c252e280ec944dafc)
+ b0891aaa5bb4d220fc84469e21b867d7432a269e50c44920b178b099b04b11509bdfd5500506faf3baa9ac8030f3fa845824c21e66ff26ac343d3113ae0b6396
+ d9f77dccb86a8e49868047aa6e162cb04c1e2f80891d1378a225c8abf47b03335c3dea64a11971f2d5df4a36bb4e37219e2e4591782a8d2142fe21554959325b)
_goroot="/usr/lib/go"
diff --git a/app.ini.patch b/app.ini.patch
index b1185b4d5c67..e5db9399c772 100644
--- a/app.ini.patch
+++ b/app.ini.patch
@@ -6,31 +6,35 @@
< ROOT =
---
> ROOT = /srv/gogs/repo
-95c95
+15c15
+< ANSI_CHARSET =
+---
+> ANSI_CHARSET =
+101c101
< STATIC_ROOT_PATH =
---
> STATIC_ROOT_PATH = /usr/share/themes/gogs/default
-97c97
+103c103
< APP_DATA_PATH = data
---
> APP_DATA_PATH = /srv/gogs/data
-120c120
+126c126
< PATH = data/gogs.db
---
> PATH = /srv/gogs/sqlite/gogs.db
-207c207
+215c215
< PROVIDER_CONFIG = data/sessions
---
> PROVIDER_CONFIG = /srv/gogs/data/sessions
-220c220
+228c228
< AVATAR_UPLOAD_PATH = data/avatars
---
> AVATAR_UPLOAD_PATH = /srv/gogs/data/avatars
-230c230
+243c243
< PATH = data/attachments
---
> PATH = /srv/gogs/data/attachments
-245c245
+258c258
< ROOT_PATH =
---
> ROOT_PATH = /var/log/gogs
diff --git a/app_new.ini b/app_new.ini
index 3299b385fc5e..99bbc0db4c4f 100644
--- a/app_new.ini
+++ b/app_new.ini
@@ -31,6 +31,8 @@ FEED_MAX_COMMIT_NUM = 5
; An invalid color like "none" or "disable" will have the default style
; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
THEME_COLOR_META_TAG = `#ff5343`
+; Max size of files to be displayed (defaults is 8MiB)
+MAX_DISPLAY_FILE_SIZE = 8388608
[ui.admin]
; Number of users that are showed in one page
@@ -42,6 +44,10 @@ NOTICE_PAGING_NUM = 25
; Number of organization that are showed in one page
ORG_PAGING_NUM = 50
+[ui.user]
+; Number of repos that are showed in one page
+REPO_PAGING_NUM = 15
+
[markdown]
; Enable hard line break extension
ENABLE_HARD_LINE_BREAK = false
@@ -53,12 +59,12 @@ CUSTOM_URL_SCHEMES =
PROTOCOL = http
DOMAIN = localhost
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
-HTTP_ADDR =
+HTTP_ADDR = 0.0.0.0
HTTP_PORT = 3000
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service.
; 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.
-LOCAL_ROOT_URL = http://localhost:%(HTTP_PORT)s/
+LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
; Disable SSH feature when not available
DISABLE_SSH = false
; Whether use builtin SSH server or not.
@@ -70,7 +76,7 @@ SSH_PORT = 22
; Port number builtin SSH server listens on
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 =
; Directory to create temporary files when test publick key using ssh-keygen,
; default is system temporary directory.
SSH_KEY_TEST_PATH =
@@ -167,24 +173,26 @@ SEND_BUFFER_LEN = 100
SUBJECT = %(APP_NAME)s
; Mail server
; Gmail: smtp.gmail.com:587
-; QQ: smtp.qq.com:25
+; QQ: smtp.qq.com:465
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
-HOST =
+HOST =
; Disable HELO operation when hostname are different.
-DISABLE_HELO =
+DISABLE_HELO =
; Custom hostname for HELO operation, default is from system.
-HELO_HOSTNAME =
+HELO_HOSTNAME =
; Do not verify the certificate of the server. Only use this for self-signed certificates
-SKIP_VERIFY =
+SKIP_VERIFY =
; Use client certificate
USE_CERTIFICATE = false
CERT_FILE = custom/mailer/cert.pem
KEY_FILE = custom/mailer/key.pem
-; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
+; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
FROM =
; Mailer user name and password
USER =
PASSWD =
+; Use text/html as alternative format of content
+ENABLE_HTML_ALTERNATIVE = false
[cache]
; Either "memory", "redis", or "memcache", default is "memory"
@@ -197,7 +205,7 @@ INTERVAL = 60
HOST =
[session]
-; Either "memory", "file", "redis" or "mysql", default is "memory"
+; Either "memory", "file", or "redis", default is "memory"
PROVIDER = memory
; Provider config options
; memory: not have any config yet
@@ -221,7 +229,12 @@ AVATAR_UPLOAD_PATH = /srv/gogs/data/avatars
; Chinese users can choose "duoshuo"
; or a custom avatar source, like: http://cn.gravatar.com/avatar/
GRAVATAR_SOURCE = gravatar
+; This value will be forced to be true in offline mode.
DISABLE_GRAVATAR = false
+; Federated avatar lookup uses DNS to discover avatar associated
+; with emails, see http://www.libravatar.org
+; This value will be forced to be false in offline mode or Gravatar is disbaled.
+ENABLE_FEDERATED_AVATAR = false
[attachment]
; Whether attachments are enabled. Defaults to `true`
@@ -310,7 +323,7 @@ RUN_AT_START = false
; Update mirrors
[cron.update_mirrors]
-SCHEDULE = @every 1h
+SCHEDULE = @every 10m
; Repository health check
[cron.repo_health_check]
@@ -318,7 +331,7 @@ SCHEDULE = @every 24h
TIMEOUT = 60s
; Arguments for command 'git fsck', e.g. "--unreachable --tags"
; see more on http://git-scm.com/docs/git-fsck/1.7.5
-ARGS =
+ARGS =
; Check repository statistics
[cron.check_repo_stats]
@@ -326,10 +339,17 @@ RUN_AT_START = true
SCHEDULE = @every 24h
[git]
-MAX_GIT_DIFF_LINES = 10000
+; Disables highlight of added and removed changes
+DISABLE_DIFF_HIGHLIGHT = false
+; Max number of lines allowed of a single file in diff view
+MAX_GIT_DIFF_LINES = 1000
+; Max number of characters of a line allowed in diff view
+MAX_GIT_DIFF_LINE_CHARACTERS = 500
+; Max number of files shown in diff view
+MAX_GIT_DIFF_FILES = 100
; Arguments for command 'git gc', e.g. "--aggressive --auto"
; see more on http://git-scm.com/docs/git-gc/1.7.5
-GC_ARGS =
+GC_ARGS =
; Operation timeout in seconds
[git.timeout]
@@ -337,16 +357,26 @@ MIGRATE = 600
MIRROR = 300
CLONE = 300
PULL = 300
+GC = 60
+
+[mirror]
+; Default interval in hours between each check
+DEFAULT_INTERVAL = 24
+
+[api]
+; Max number of items will response in a page
+MAX_RESPONSE_ITEMS = 50
[i18n]
-LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI
-NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen
+LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ
+NAMES = English,简体中文,繁體中文(香港),繁體中文(台湾),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština
; Used for datetimepicker
[i18n.datelang]
en-US = en
zh-CN = zh
zh-HK = zh-TW
+zh-TW = zh-TW
de-DE = de
fr-FR = fr
nl-NL = nl
@@ -359,6 +389,8 @@ pl-PL = pl
bg-BG = bg
it-IT = it
fi-FI = fi
+tr-TR = tr
+cs-CZ = cs-CZ
; Extension mapping to highlight class
; e.g. .toml=ini
diff --git a/app_old.ini b/app_old.ini
index 3d5ef38e85a3..e656aa79ead2 100644
--- a/app_old.ini
+++ b/app_old.ini
@@ -12,7 +12,7 @@ RUN_MODE = dev
ROOT =
SCRIPT_TYPE = bash
; Default ANSI charset
-ANSI_CHARSET =
+ANSI_CHARSET =
; Force every new repository to be private
FORCE_PRIVATE = false
; Global maximum creation limit of repository per user, -1 means no limit
@@ -31,6 +31,8 @@ FEED_MAX_COMMIT_NUM = 5
; An invalid color like "none" or "disable" will have the default style
; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
THEME_COLOR_META_TAG = `#ff5343`
+; Max size of files to be displayed (defaults is 8MiB)
+MAX_DISPLAY_FILE_SIZE = 8388608
[ui.admin]
; Number of users that are showed in one page
@@ -42,6 +44,10 @@ NOTICE_PAGING_NUM = 25
; Number of organization that are showed in one page
ORG_PAGING_NUM = 50
+[ui.user]
+; Number of repos that are showed in one page
+REPO_PAGING_NUM = 15
+
[markdown]
; Enable hard line break extension
ENABLE_HARD_LINE_BREAK = false
@@ -53,12 +59,12 @@ CUSTOM_URL_SCHEMES =
PROTOCOL = http
DOMAIN = localhost
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
-HTTP_ADDR =
+HTTP_ADDR = 0.0.0.0
HTTP_PORT = 3000
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service.
; 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.
-LOCAL_ROOT_URL = http://localhost:%(HTTP_PORT)s/
+LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
; Disable SSH feature when not available
DISABLE_SSH = false
; Whether use builtin SSH server or not.
@@ -70,7 +76,7 @@ SSH_PORT = 22
; Port number builtin SSH server listens on
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 =
; Directory to create temporary files when test publick key using ssh-keygen,
; default is system temporary directory.
SSH_KEY_TEST_PATH =
@@ -167,24 +173,26 @@ SEND_BUFFER_LEN = 100
SUBJECT = %(APP_NAME)s
; Mail server
; Gmail: smtp.gmail.com:587
-; QQ: smtp.qq.com:25
+; QQ: smtp.qq.com:465
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
-HOST =
+HOST =
; Disable HELO operation when hostname are different.
-DISABLE_HELO =
+DISABLE_HELO =
; Custom hostname for HELO operation, default is from system.
-HELO_HOSTNAME =
+HELO_HOSTNAME =
; Do not verify the certificate of the server. Only use this for self-signed certificates
-SKIP_VERIFY =
+SKIP_VERIFY =
; Use client certificate
USE_CERTIFICATE = false
CERT_FILE = custom/mailer/cert.pem
KEY_FILE = custom/mailer/key.pem
-; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
+; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
FROM =
; Mailer user name and password
USER =
PASSWD =
+; Use text/html as alternative format of content
+ENABLE_HTML_ALTERNATIVE = false
[cache]
; Either "memory", "redis", or "memcache", default is "memory"
@@ -197,7 +205,7 @@ INTERVAL = 60
HOST =
[session]
-; Either "memory", "file", "redis" or "mysql", default is "memory"
+; Either "memory", "file", or "redis", default is "memory"
PROVIDER = memory
; Provider config options
; memory: not have any config yet
@@ -221,7 +229,12 @@ AVATAR_UPLOAD_PATH = data/avatars
; Chinese users can choose "duoshuo"
; or a custom avatar source, like: http://cn.gravatar.com/avatar/
GRAVATAR_SOURCE = gravatar
+; This value will be forced to be true in offline mode.
DISABLE_GRAVATAR = false
+; Federated avatar lookup uses DNS to discover avatar associated
+; with emails, see http://www.libravatar.org
+; This value will be forced to be false in offline mode or Gravatar is disbaled.
+ENABLE_FEDERATED_AVATAR = false
[attachment]
; Whether attachments are enabled. Defaults to `true`
@@ -310,7 +323,7 @@ RUN_AT_START = false
; Update mirrors
[cron.update_mirrors]
-SCHEDULE = @every 1h
+SCHEDULE = @every 10m
; Repository health check
[cron.repo_health_check]
@@ -318,7 +331,7 @@ SCHEDULE = @every 24h
TIMEOUT = 60s
; Arguments for command 'git fsck', e.g. "--unreachable --tags"
; see more on http://git-scm.com/docs/git-fsck/1.7.5
-ARGS =
+ARGS =
; Check repository statistics
[cron.check_repo_stats]
@@ -326,10 +339,17 @@ RUN_AT_START = true
SCHEDULE = @every 24h
[git]
-MAX_GIT_DIFF_LINES = 10000
+; Disables highlight of added and removed changes
+DISABLE_DIFF_HIGHLIGHT = false
+; Max number of lines allowed of a single file in diff view
+MAX_GIT_DIFF_LINES = 1000
+; Max number of characters of a line allowed in diff view
+MAX_GIT_DIFF_LINE_CHARACTERS = 500
+; Max number of files shown in diff view
+MAX_GIT_DIFF_FILES = 100
; Arguments for command 'git gc', e.g. "--aggressive --auto"
; see more on http://git-scm.com/docs/git-gc/1.7.5
-GC_ARGS =
+GC_ARGS =
; Operation timeout in seconds
[git.timeout]
@@ -337,16 +357,26 @@ MIGRATE = 600
MIRROR = 300
CLONE = 300
PULL = 300
+GC = 60
+
+[mirror]
+; Default interval in hours between each check
+DEFAULT_INTERVAL = 24
+
+[api]
+; Max number of items will response in a page
+MAX_RESPONSE_ITEMS = 50
[i18n]
-LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI
-NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen
+LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ
+NAMES = English,简体中文,繁體中文(香港),繁體中文(台湾),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština
; Used for datetimepicker
[i18n.datelang]
en-US = en
zh-CN = zh
zh-HK = zh-TW
+zh-TW = zh-TW
de-DE = de
fr-FR = fr
nl-NL = nl
@@ -359,6 +389,8 @@ pl-PL = pl
bg-BG = bg
it-IT = it
fi-FI = fi
+tr-TR = tr
+cs-CZ = cs-CZ
; Extension mapping to highlight class
; e.g. .toml=ini