aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorboosterdev2017-04-14 22:39:40 +0200
committerboosterdev2017-04-14 22:39:40 +0200
commit71c34a4f9ed24ba114f624bafa402067ca3868fa (patch)
tree71a826800b50b1927d8b40729e5040d6f2733e23
parente3f7b9a405619753ae98119d0b7adeb81a3107fe (diff)
downloadaur-71c34a4f9ed24ba114f624bafa402067ca3868fa.tar.gz
autobuild
-rw-r--r--.SRCINFO48
-rw-r--r--.gitignore13
-rw-r--r--PKGBUILD125
-rw-r--r--README.md31
-rw-r--r--app.ini.patch24
-rw-r--r--app_new.ini442
-rw-r--r--app_old.ini442
-rw-r--r--gogs.changelog510
-rw-r--r--gogs.install51
-rw-r--r--gogs.service15
-rw-r--r--gogs.service.patch14
-rw-r--r--gogs.sysusers1
-rw-r--r--gogs.tmpfiles2
-rw-r--r--gogs_new.service20
-rw-r--r--gogs_old.service20
15 files changed, 104 insertions, 1654 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d87854e830a2..58603c206c68 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,41 +1,31 @@
-# Generated by mksrcinfo v8
-# Wed Dec 28 07:40:24 UTC 2016
pkgbase = gogs
pkgdesc = Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language.
- pkgver = 0.9.113
+ pkgver = 0.11.4
pkgrel = 1
- epoch = 1
url = http://gogs.io/
install = gogs.install
- arch = i686
arch = x86_64
- arch = armv6h
- arch = armv7h
license = MIT
- makedepends = go>=1.3
- makedepends = git>=1.7.1
- makedepends = patch
- makedepends = glide>=0.10
- depends = git>=1.7.1
- optdepends = sqlite: SQLite support
- optdepends = mariadb: MariaDB support
- optdepends = postgresql: PostgreSQL support
- optdepends = redis: Redis support
- optdepends = memcached: MemCached support
- optdepends = openssh: GIT over SSH support
+ makedepends = go
+ makedepends = go-bindata-git
+ makedepends = nodejs-less
+ depends = git
+ depends = sqlite
provides = gogs
- conflicts = gogs-bin
+ conflicts = gogs
conflicts = gogs-git
- conflicts = gogs-git-dev
- options = !strip
- options = !emptydirs
- backup = srv/gogs/conf/app.ini
- source = gogs.service.patch
- source = app.ini.patch
- source = gogs-0.9.113::https://github.com/gogits/gogs/archive/v0.9.113.tar.gz
- sha512sums = 834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
- sha512sums = dd88280d0ae028085d5834e7579477257331287f6892ec9489a6ba07f1c1f9f993a2b23513ea128ddf523b69ead2be9c309833ad22901a6a6ec6180720ee81bd
- sha512sums = 45527934b2a7b12730cbcbe4f6c92e49d3a59369cb6380ead25809340d02ac9f38f4370c0a9d1e3a84dd59dc0ab77c6b6e2c2217d95ffcb69f9a035ccf042549
+ replaces = gogs-master-git
+ options = !buildflags
+ source = gogs::git+https://github.com/gogits/gogs#tag=v0.11.4
+ source = gogs.service
+ source = gogs.sysusers
+ source = gogs.tmpfiles
+ source = gogs.install
+ sha256sums = SKIP
+ sha256sums = f9f56b4946ad58f6c38ca4bda68f80ee02706d322986b5ffec2280accc83b55e
+ sha256sums = a51f93aefe8724aad67e8cacaaaa1f140c930cffcdb1f5dd951272a340c59650
+ sha256sums = e761cd82ad26d732bbeaac73307a032674612d30be98f9a9c8c769340139605c
+ sha256sums = c120a3458ad295815020441c940e81ee0dbd9d0322a2bd585b7c3d56da0e9dea
pkgname = gogs
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index b0b42a850abe..000000000000
--- a/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-*
-!.gitignore
-!app_ini.patch
-!app_old.ini
-!gogs.changelog
-!gogs.install
-!gogs.service.patch
-!gogs_new.service
-!gogs_old.service
-!helper.sh
-!PKGBUILD
-!README.md
-!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index 307970d77b5e..483f66be30e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,98 +1,73 @@
-# Contributor: Thomas Laroche <tho.laroche@gmail.com>
-# Maintainer: Thomas Fanninger <thomas@fanninger.at>
-
pkgname=gogs
-_pkgname=${pkgname}
-pkgver=0.9.113
+gitver="v0.11.4"
+pkgver="0.11.4"
pkgrel=1
-epoch=1
pkgdesc="Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language."
-arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+arch=('x86_64')
url="http://gogs.io/"
license=('MIT')
+depends=('git' 'sqlite')
+conflicts=('gogs' 'gogs-git')
provides=('gogs')
-depends=('git>=1.7.1')
-optdepends=('sqlite: SQLite support'
- 'mariadb: MariaDB support'
- 'postgresql: PostgreSQL support'
- 'redis: Redis support'
- 'memcached: MemCached support'
- 'openssh: GIT over SSH support')
-makedepends=('go>=1.3' 'git>=1.7.1' 'patch' 'glide>=0.10')
-conflicts=('gogs-bin' 'gogs-git' 'gogs-git-dev')
-options=('!strip' '!emptydirs')
-backup=('srv/gogs/conf/app.ini')
-
-install=gogs.install
-
-_gourl=github.com/gogits/$_pkgname
-source=('gogs.service.patch'
- 'app.ini.patch'
- "$_pkgname-$pkgver::https://${_gourl}/archive/v${pkgver}.tar.gz")
-
-sha512sums=(834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
- dd88280d0ae028085d5834e7579477257331287f6892ec9489a6ba07f1c1f9f993a2b23513ea128ddf523b69ead2be9c309833ad22901a6a6ec6180720ee81bd
- 45527934b2a7b12730cbcbe4f6c92e49d3a59369cb6380ead25809340d02ac9f38f4370c0a9d1e3a84dd59dc0ab77c6b6e2c2217d95ffcb69f9a035ccf042549)
-
-_goroot="/usr/lib/go"
+replaces=('gogs-master-git')
+options=('!buildflags')
+makedepends=('go' 'go-bindata-git' 'nodejs-less')
+install="gogs.install"
+source=("${pkgname}::git+https://github.com/gogits/gogs#tag=${gitver}"
+ "${pkgname}.service"
+ "${pkgname}.sysusers"
+ "${pkgname}.tmpfiles"
+ "${pkgname}.install"
+)
+sha256sums=('SKIP'
+ 'f9f56b4946ad58f6c38ca4bda68f80ee02706d322986b5ffec2280accc83b55e'
+ 'a51f93aefe8724aad67e8cacaaaa1f140c930cffcdb1f5dd951272a340c59650'
+ 'e761cd82ad26d732bbeaac73307a032674612d30be98f9a9c8c769340139605c'
+ 'c120a3458ad295815020441c940e81ee0dbd9d0322a2bd585b7c3d56da0e9dea')
+
+_gogsdir="src/github.com/gogits/gogs"
prepare() {
- export GOROOT=/usr/lib/go
-
- msg2 "Prepare GO build enviroment"
- rm -rf build
- mkdir -p build/go
- cd build/go
+ export GOPATH="$srcdir"
- for f in "$GOROOT/"*; do
- ln -s "$f"
- done
+ mkdir -p ./src/github.com/gogits
- rm pkg
- mkdir pkg
- cd pkg
+ mv -t ./src/github.com/gogits ./gogs
- for f in "$GOROOT/pkg/"*; do
- ln -s "$f"
- done
+ cd "$_gogsdir"
- export GOROOT="$srcdir/build/go"
- export GOPATH="$srcdir/build"
-
- mkdir -p "$GOPATH/src/github.com/gogits"
+ sed -r -i conf/app.ini \
+ -e '0, /^\[/ s/^(RUN_USER)\W.*$/\1 = gogs/' \
+ -e '/^\[server\]/, /^\[/ s/^(STATIC_ROOT_PATH)\W.*$/\1 = \/usr\/share\/gogs/' \
+ -e '/^\[log\]/, /^\[/ s/^(ROOT_PATH)\W.*$/\1 = \/var\/log\/gogs/' \
+ ;
- mv "$srcdir/$_pkgname-${pkgver}" $GOPATH/src/${_gourl}
-
- # Glide
- msg2 "Download dependencies via Glide"
- cd $GOPATH/src/${_gourl}
- glide cc
- glide update
- glide install
-
- # Execute patch
- msg2 "Execute patches"
- patch -Np1 -i "$srcdir/app.ini.patch" "$GOPATH/src/${_gourl}/conf/app.ini"
- patch -Np1 -i "$srcdir/gogs.service.patch" "$GOPATH/src/${_gourl}/scripts/systemd/gogs.service"
+ # Dirty hack
+ sed -i vendor/github.com/go-xorm/xorm/logger.go \
+ -e '/DEFAULT_LOG_LEVEL/ s/core\.LOG_DEBUG/core.LOG_WARNING/' vendor/github.com/go-xorm/xorm/logger.go \
+ ;
}
build() {
- cd $GOPATH/src/${_gourl}
+ export GOPATH="$srcdir"
+
+ cd "$srcdir/$_gogsdir"
- msg2 "Build program"
- go fix
- go build -x -tags='sqlite pam cert'
+ make PATH="$GOPATH/bin:$PATH" TAGS='libsqlite3 sqlite pam cert' build
}
package() {
- install -Dm0755 "$srcdir/build/src/${_gourl}/$_pkgname" "$pkgdir/usr/share/$_pkgname/$_pkgname"
+ cd "$_gogsdir"
+
+ rm -rf ./public/{less,config.codekit}
+
+ install -d "$pkgdir/usr/share/gogs"
+ cp -rt "$pkgdir/usr/share/gogs" ./{templates,public}
- cp -r "$srcdir/build/src/${_gourl}/conf" "$pkgdir/usr/share/$_pkgname"
- mkdir -p "$pkgdir/usr/share/themes/gogs/default/"
- cp -r "$srcdir/build/src/${_gourl}/public" "$pkgdir/usr/share/themes/gogs/default"
- cp -r "$srcdir/build/src/${_gourl}/templates" "$pkgdir/usr/share/themes/gogs/default"
+ install -Dm0755 -t "$pkgdir/usr/bin" ./gogs
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/gogs" ./LICENSE
+ install -Dm0644 -t "$pkgdir/usr/lib/systemd/system" "$srcdir/gogs.service"
- install -Dm0644 "$pkgdir/usr/share/$_pkgname/conf/app.ini" "$pkgdir/srv/$_pkgname/conf/app.ini"
- install -Dm0644 "$srcdir/build/src/${_gourl}/scripts/systemd/gogs.service" "$pkgdir/usr/lib/systemd/system/gogs.service"
- install -Dm0644 "$srcdir/build/src/${_gourl}/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname"
+ install -Dm0644 "$srcdir/gogs.sysusers" "$pkgdir/usr/lib/sysusers.d/gogs.conf"
+ install -Dm0644 "$srcdir/gogs.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/gogs.conf"
}
diff --git a/README.md b/README.md
deleted file mode 100644
index 229f35e9c4e4..000000000000
--- a/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Gogs
-PKGBUILD files for different versions of Gogs (Go Git Service).
-
-## Open points
-* ~~Systemd service support~~
-* ~~better file structure~~
-* ~~Publishing on https://aur.archlinux.org~~
-* Test MariaDB and PostgreSQL installation
-* ~~Test on armv6h (Raspberry Pi), armv7h (Cubieboard 2) and on x86_64~~
-* Documentation for usage and configuration
-
-## Install
-```
-$ tar -xvzf /<path to Tarball>/gogs-*.tar.gz
-$ cd <package-name>
-$ makepkg
-$ pacman -U gogs-*.tgz
-```
-
-## Configuration
-Enable and start systemd servicd
-```
-$ systemctl enable gogs.service
-$ systemctl start gogs.service
-```
-
-## Logging
-After start of the service every log entry is over journalctl displayable.
-```
-$ journalctl -f -u gogs.service
-```
diff --git a/app.ini.patch b/app.ini.patch
deleted file mode 100644
index b0c100fe15a0..000000000000
--- a/app.ini.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-7c7
-< RUN_USER = git
----
-> RUN_USER = gogs
-12c12
-< ROOT =
----
-> ROOT = /srv/gogs/repo
-135c135
-< STATIC_ROOT_PATH =
----
-> STATIC_ROOT_PATH = /usr/share/themes/gogs/default
-137c137
-< APP_DATA_PATH = data
----
-> APP_DATA_PATH = /srv/gogs/data
-160c160
-< PATH = data/gogs.db
----
-> PATH = /srv/gogs/sqlite/gogs.db
-292c292
-< ROOT_PATH =
----
-> ROOT_PATH = /var/log/gogs
diff --git a/app_new.ini b/app_new.ini
deleted file mode 100644
index 0c800fcd05f4..000000000000
--- a/app_new.ini
+++ /dev/null
@@ -1,442 +0,0 @@
-# NEVER EVER MODIFY THIS FILE
-# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE
-
-; App name that shows on every page title
-APP_NAME = Gogs: Go Git Service
-; Change it if you run locally
-RUN_USER = gogs
-; Either "dev", "prod" or "test", default is "dev"
-RUN_MODE = dev
-
-[repository]
-ROOT = /srv/gogs/repo
-SCRIPT_TYPE = bash
-; Default 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
-MAX_CREATION_LIMIT = -1
-; Mirror sync queue length, increase if mirror syncing starts hanging
-MIRROR_QUEUE_LENGTH = 1000
-; Patch test queue length, increase if pull request patch testing starts hanging
-PULL_REQUEST_QUEUE_LENGTH = 1000
-; Preferred Licenses to place at the top of the List
-; Name must match file name in conf/license or custom/conf/license
-PREFERRED_LICENSES = Apache License 2.0,MIT License
-; Disable ability to interact with repositories by HTTP protocol
-DISABLE_HTTP_GIT = false
-
-[repository.editor]
-; List of file extensions that should have line wraps in the CodeMirror editor
-; Separate extensions with a comma. To line wrap files w/o extension, just put a comma
-LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
-; Valid file modes that have a preview API associated with them, such as api/v1/markdown
-; Separate values by commas. Preview tab in edit mode won't show if the file extension doesn't match
-PREVIEWABLE_FILE_MODES = markdown
-
-[repository.upload]
-; Whether repository file uploads are enabled. Defaults to `true`
-ENABLED = true
-; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gogs restart)
-TEMP_PATH = data/tmp/uploads
-; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
-ALLOWED_TYPES =
-; Max size of each file in MB. Defaults to 3MB
-FILE_MAX_SIZE = 3
-; Max number of files per upload. Defaults to 5
-MAX_FILES = 5
-
-[ui]
-; Number of repositories that are showed in one explore page
-EXPLORE_PAGING_NUM = 20
-; Number of issues that are showed in one page
-ISSUE_PAGING_NUM = 10
-; Number of maximum commits showed in one activity feed
-FEED_MAX_COMMIT_NUM = 5
-; Value of `theme-color` meta tag, used by Android >= 5.0
-; 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
-USER_PAGING_NUM = 50
-; Number of repos that are showed in one page
-REPO_PAGING_NUM = 50
-; Number of notices that are showed in one page
-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
-; List of custom URL-Schemes that are allowed as links when rendering Markdown
-; for example git,magnet
-CUSTOM_URL_SCHEMES =
-; List of file extensions that should be rendered/edited as Markdown
-; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma
-FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
-
-[server]
-PROTOCOL = http
-DOMAIN = localhost
-ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
-HTTP_ADDR = 0.0.0.0
-HTTP_PORT = 3000
-; Permission for unix socket
-UNIX_SOCKET_PERMISSION = 666
-; 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 = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
-; Disable SSH feature when not available
-DISABLE_SSH = false
-; Whether use builtin SSH server or not.
-START_SSH_SERVER = false
-; Domain name to be exposed in clone URL
-SSH_DOMAIN = %(DOMAIN)s
-; Network interface builtin SSH server listens on
-SSH_LISTEN_HOST = 0.0.0.0
-; Port number to be exposed in clone URL
-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 =
-; Directory to create temporary files when test publick key using ssh-keygen,
-; default is system temporary directory.
-SSH_KEY_TEST_PATH =
-; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call.
-SSH_KEYGEN_PATH = ssh-keygen
-; Indicate whether to check minimum key size with corresponding type
-MINIMUM_KEY_SIZE_CHECK = false
-; Disable CDN even in "prod" mode
-OFFLINE_MODE = false
-DISABLE_ROUTER_LOG = false
-; Generate steps:
-; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
-;
-; Or from a .pfx file exported from the Windows certificate store (do
-; not forget to export the private key):
-; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
-; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
-CERT_FILE = custom/https/cert.pem
-KEY_FILE = custom/https/key.pem
-; Upper level of template and static file path
-; default is the path where Gogs is executed
-STATIC_ROOT_PATH = /usr/share/themes/gogs/default
-; Default path for App data
-APP_DATA_PATH = /srv/gogs/data
-; Application level GZIP support
-ENABLE_GZIP = false
-; Landing page for non-logged users, can be "home" or "explore"
-LANDING_PAGE = home
-
-; Define allowed algorithms and their minimum key length (use -1 to disable a type)
-[ssh.minimum_key_sizes]
-ED25519 = 256
-ECDSA = 256
-RSA = 2048
-DSA = 1024
-
-[database]
-; Either "mysql", "postgres" or "sqlite3", it's your choice
-DB_TYPE = mysql
-HOST = 127.0.0.1:3306
-NAME = gogs
-USER = root
-PASSWD =
-; For "postgres" only, either "disable", "require" or "verify-full"
-SSL_MODE = disable
-; For "sqlite3" and "tidb", use absolute path when you start as service
-PATH = /srv/gogs/sqlite/gogs.db
-
-[admin]
-
-[security]
-INSTALL_LOCK = false
-; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
-SECRET_KEY = !#@FDEWREWR&*(
-; Auto-login remember days
-LOGIN_REMEMBER_DAYS = 7
-COOKIE_USERNAME = gogs_awesome
-COOKIE_REMEMBER_NAME = gogs_incredible
-; Reverse proxy authentication header name of user name
-REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
-
-[service]
-ACTIVE_CODE_LIVE_MINUTES = 180
-RESET_PASSWD_CODE_LIVE_MINUTES = 180
-; User need to confirm e-mail for registration
-REGISTER_EMAIL_CONFIRM = false
-; Does not allow register and admin create account only
-DISABLE_REGISTRATION = false
-; User must sign in to view anything.
-REQUIRE_SIGNIN_VIEW = false
-; Mail notification
-ENABLE_NOTIFY_MAIL = false
-; More detail: https://github.com/gogits/gogs/issues/165
-ENABLE_REVERSE_PROXY_AUTHENTICATION = false
-ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
-; Enable captcha validation for registration
-ENABLE_CAPTCHA = true
-
-[webhook]
-; Hook task queue length, increase if webhook shooting starts hanging
-QUEUE_LENGTH = 1000
-; Deliver timeout in seconds
-DELIVER_TIMEOUT = 5
-; Allow insecure certification
-SKIP_TLS_VERIFY = false
-; Number of history information in each page
-PAGING_NUM = 10
-
-[mailer]
-ENABLED = false
-; Buffer length of channel, keep it as it is if you don't know what it is.
-SEND_BUFFER_LEN = 100
-; Name displayed in mail title
-SUBJECT = %(APP_NAME)s
-; Mail server
-; Gmail: smtp.gmail.com:587
-; 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 =
-; Disable HELO operation when hostname are different.
-DISABLE_HELO =
-; Custom hostname for HELO operation, default is from system.
-HELO_HOSTNAME =
-; Do not verify the certificate of the server. Only use this for self-signed certificates
-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
-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"
-ADAPTER = memory
-; For "memory" only, GC interval in seconds, default is 60
-INTERVAL = 60
-; For "redis" and "memcache", connection host address
-; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
-; memcache: `127.0.0.1:11211`
-HOST =
-
-[session]
-; Either "memory", "file", or "redis", default is "memory"
-PROVIDER = memory
-; Provider config options
-; memory: not have any config yet
-; file: session file path, e.g. `data/sessions`
-; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
-; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
-PROVIDER_CONFIG = data/sessions
-; Session cookie name
-COOKIE_NAME = i_like_gogits
-; If you use session in https only, default is false
-COOKIE_SECURE = false
-; Enable set cookie, default is true
-ENABLE_SET_COOKIE = true
-; Session GC time interval, default is 86400
-GC_INTERVAL_TIME = 86400
-; Session life time, default is 86400
-SESSION_LIFE_TIME = 86400
-
-[picture]
-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 https://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`
-ENABLE = true
-; Path for attachments. Defaults to `data/attachments`
-PATH = data/attachments
-; One or more allowed types, e.g. image/jpeg|image/png
-ALLOWED_TYPES = image/jpeg|image/png
-; Max size of each file. Defaults to 32MB
-MAX_SIZE = 4
-; Max number of files per upload. Defaults to 10
-MAX_FILES = 5
-
-[time]
-; Specifies the format for fully outputed dates. Defaults to RFC1123
-; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
-; For more information about the format see http://golang.org/pkg/time/#pkg-constants
-FORMAT =
-
-[log]
-ROOT_PATH = /var/log/gogs
-; Either "console", "file", "conn", "smtp" or "database", default is "console"
-; Use comma to separate multiple modes, e.g. "console, file"
-MODE = console
-; Buffer length of channel, keep it as it is if you don't know what it is.
-BUFFER_LEN = 10000
-; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
-LEVEL = Trace
-
-; For "console" mode only
-[log.console]
-LEVEL =
-
-; For "file" mode only
-[log.file]
-LEVEL =
-; This enables automated log rotate(switch of following options), default is true
-LOG_ROTATE = true
-; Max line number of single file, default is 1000000
-MAX_LINES = 1000000
-; Max size shift of single file, default is 28 means 1 << 28, 256MB
-MAX_SIZE_SHIFT = 28
-; Segment log daily, default is true
-DAILY_ROTATE = true
-; Expired days of log file(delete after max days), default is 7
-MAX_DAYS = 7
-
-; For "conn" mode only
-[log.conn]
-LEVEL =
-; Reconnect host for every single message, default is false
-RECONNECT_ON_MSG = false
-; Try to reconnect when connection is lost, default is false
-RECONNECT = false
-; Either "tcp", "unix" or "udp", default is "tcp"
-PROTOCOL = tcp
-; Host address
-ADDR =
-
-; For "smtp" mode only
-[log.smtp]
-LEVEL =
-; Name displayed in mail title, default is "Diagnostic message from server"
-SUBJECT = Diagnostic message from server
-; Mail server
-HOST =
-; Mailer user name and password
-USER =
-PASSWD =
-; Receivers, can be one or more, e.g. 1@example.com,2@example.com
-RECEIVERS =
-
-; For "database" mode only
-[log.database]
-LEVEL =
-; Either "mysql" or "postgres"
-DRIVER =
-; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
-CONN =
-
-[cron]
-; Enable running cron tasks periodically.
-ENABLED = true
-; Run cron tasks when Gogs starts.
-RUN_AT_START = false
-
-; Update mirrors
-[cron.update_mirrors]
-SCHEDULE = @every 10m
-
-; Repository health check
-[cron.repo_health_check]
-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 =
-
-; Check repository statistics
-[cron.check_repo_stats]
-RUN_AT_START = true
-SCHEDULE = @every 24h
-
-[git]
-; 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 =
-
-; Operation timeout in seconds
-[git.timeout]
-MIGRATE = 600
-MIRROR = 300
-CLONE = 300
-PULL = 300
-GC = 60
-
-[mirror]
-; Default interval in hours between each check
-DEFAULT_INTERVAL = 8
-
-[api]
-; Max number of items will response in a page
-MAX_RESPONSE_ITEMS = 50
-
-[i18n]
-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,sr-SP,sv-SE,ko-KR,gl-ES
-NAMES = English,简体中文,繁體中文(香港),繁體中文(台湾),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština,Српски,Svenska,한국어,Galego
-
-; 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
-lv-LV = lv
-ru-RU = ru
-ja-JP = ja
-es-ES = es
-pt-BR = pt-BR
-pl-PL = pl
-bg-BG = bg
-it-IT = it
-fi-FI = fi
-tr-TR = tr
-cs-CZ = cs-CZ
-sr-SP = sr
-sv-SE = sv
-ko-KR = ko
-gl-ES = gl
-
-; Extension mapping to highlight class
-; e.g. .toml=ini
-[highlight.mapping]
-
-[other]
-SHOW_FOOTER_BRANDING = false
-; Show version information about Gogs and Go in the footer
-SHOW_FOOTER_VERSION = true
-; Show time of template execution in the footer
-SHOW_FOOTER_TEMPLATE_LOAD_TIME = true \ No newline at end of file
diff --git a/app_old.ini b/app_old.ini
deleted file mode 100644
index 367a09aa58b6..000000000000
--- a/app_old.ini
+++ /dev/null
@@ -1,442 +0,0 @@
-# NEVER EVER MODIFY THIS FILE
-# PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE
-
-; App name that shows on every page title
-APP_NAME = Gogs: Go Git Service
-; Change it if you run locally
-RUN_USER = git
-; Either "dev", "prod" or "test", default is "dev"
-RUN_MODE = dev
-
-[repository]
-ROOT =
-SCRIPT_TYPE = bash
-; Default 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
-MAX_CREATION_LIMIT = -1
-; Mirror sync queue length, increase if mirror syncing starts hanging
-MIRROR_QUEUE_LENGTH = 1000
-; Patch test queue length, increase if pull request patch testing starts hanging
-PULL_REQUEST_QUEUE_LENGTH = 1000
-; Preferred Licenses to place at the top of the List
-; Name must match file name in conf/license or custom/conf/license
-PREFERRED_LICENSES = Apache License 2.0,MIT License
-; Disable ability to interact with repositories by HTTP protocol
-DISABLE_HTTP_GIT = false
-
-[repository.editor]
-; List of file extensions that should have line wraps in the CodeMirror editor
-; Separate extensions with a comma. To line wrap files w/o extension, just put a comma
-LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
-; Valid file modes that have a preview API associated with them, such as api/v1/markdown
-; Separate values by commas. Preview tab in edit mode won't show if the file extension doesn't match
-PREVIEWABLE_FILE_MODES = markdown
-
-[repository.upload]
-; Whether repository file uploads are enabled. Defaults to `true`
-ENABLED = true
-; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gogs restart)
-TEMP_PATH = data/tmp/uploads
-; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
-ALLOWED_TYPES =
-; Max size of each file in MB. Defaults to 3MB
-FILE_MAX_SIZE = 3
-; Max number of files per upload. Defaults to 5
-MAX_FILES = 5
-
-[ui]
-; Number of repositories that are showed in one explore page
-EXPLORE_PAGING_NUM = 20
-; Number of issues that are showed in one page
-ISSUE_PAGING_NUM = 10
-; Number of maximum commits showed in one activity feed
-FEED_MAX_COMMIT_NUM = 5
-; Value of `theme-color` meta tag, used by Android >= 5.0
-; 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
-USER_PAGING_NUM = 50
-; Number of repos that are showed in one page
-REPO_PAGING_NUM = 50
-; Number of notices that are showed in one page
-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
-; List of custom URL-Schemes that are allowed as links when rendering Markdown
-; for example git,magnet
-CUSTOM_URL_SCHEMES =
-; List of file extensions that should be rendered/edited as Markdown
-; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma
-FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
-
-[server]
-PROTOCOL = http
-DOMAIN = localhost
-ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
-HTTP_ADDR = 0.0.0.0
-HTTP_PORT = 3000
-; Permission for unix socket
-UNIX_SOCKET_PERMISSION = 666
-; 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 = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
-; Disable SSH feature when not available
-DISABLE_SSH = false
-; Whether use builtin SSH server or not.
-START_SSH_SERVER = false
-; Domain name to be exposed in clone URL
-SSH_DOMAIN = %(DOMAIN)s
-; Network interface builtin SSH server listens on
-SSH_LISTEN_HOST = 0.0.0.0
-; Port number to be exposed in clone URL
-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 =
-; Directory to create temporary files when test publick key using ssh-keygen,
-; default is system temporary directory.
-SSH_KEY_TEST_PATH =
-; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call.
-SSH_KEYGEN_PATH = ssh-keygen
-; Indicate whether to check minimum key size with corresponding type
-MINIMUM_KEY_SIZE_CHECK = false
-; Disable CDN even in "prod" mode
-OFFLINE_MODE = false
-DISABLE_ROUTER_LOG = false
-; Generate steps:
-; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
-;
-; Or from a .pfx file exported from the Windows certificate store (do
-; not forget to export the private key):
-; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
-; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
-CERT_FILE = custom/https/cert.pem
-KEY_FILE = custom/https/key.pem
-; Upper level of template and static file path
-; default is the path where Gogs is executed
-STATIC_ROOT_PATH =
-; Default path for App data
-APP_DATA_PATH = data
-; Application level GZIP support
-ENABLE_GZIP = false
-; Landing page for non-logged users, can be "home" or "explore"
-LANDING_PAGE = home
-
-; Define allowed algorithms and their minimum key length (use -1 to disable a type)
-[ssh.minimum_key_sizes]
-ED25519 = 256
-ECDSA = 256
-RSA = 2048
-DSA = 1024
-
-[database]
-; Either "mysql", "postgres" or "sqlite3", it's your choice
-DB_TYPE = mysql
-HOST = 127.0.0.1:3306
-NAME = gogs
-USER = root
-PASSWD =
-; For "postgres" only, either "disable", "require" or "verify-full"
-SSL_MODE = disable
-; For "sqlite3" and "tidb", use absolute path when you start as service
-PATH = data/gogs.db
-
-[admin]
-
-[security]
-INSTALL_LOCK = false
-; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
-SECRET_KEY = !#@FDEWREWR&*(
-; Auto-login remember days
-LOGIN_REMEMBER_DAYS = 7
-COOKIE_USERNAME = gogs_awesome
-COOKIE_REMEMBER_NAME = gogs_incredible
-; Reverse proxy authentication header name of user name
-REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
-
-[service]
-ACTIVE_CODE_LIVE_MINUTES = 180
-RESET_PASSWD_CODE_LIVE_MINUTES = 180
-; User need to confirm e-mail for registration
-REGISTER_EMAIL_CONFIRM = false
-; Does not allow register and admin create account only
-DISABLE_REGISTRATION = false
-; User must sign in to view anything.
-REQUIRE_SIGNIN_VIEW = false
-; Mail notification
-ENABLE_NOTIFY_MAIL = false
-; More detail: https://github.com/gogits/gogs/issues/165
-ENABLE_REVERSE_PROXY_AUTHENTICATION = false
-ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
-; Enable captcha validation for registration
-ENABLE_CAPTCHA = true
-
-[webhook]
-; Hook task queue length, increase if webhook shooting starts hanging
-QUEUE_LENGTH = 1000
-; Deliver timeout in seconds
-DELIVER_TIMEOUT = 5
-; Allow insecure certification
-SKIP_TLS_VERIFY = false
-; Number of history information in each page
-PAGING_NUM = 10
-
-[mailer]
-ENABLED = false
-; Buffer length of channel, keep it as it is if you don't know what it is.
-SEND_BUFFER_LEN = 100
-; Name displayed in mail title
-SUBJECT = %(APP_NAME)s
-; Mail server
-; Gmail: smtp.gmail.com:587
-; 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 =
-; Disable HELO operation when hostname are different.
-DISABLE_HELO =
-; Custom hostname for HELO operation, default is from system.
-HELO_HOSTNAME =
-; Do not verify the certificate of the server. Only use this for self-signed certificates
-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
-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"
-ADAPTER = memory
-; For "memory" only, GC interval in seconds, default is 60
-INTERVAL = 60
-; For "redis" and "memcache", connection host address
-; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
-; memcache: `127.0.0.1:11211`
-HOST =
-
-[session]
-; Either "memory", "file", or "redis", default is "memory"
-PROVIDER = memory
-; Provider config options
-; memory: not have any config yet
-; file: session file path, e.g. `data/sessions`
-; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
-; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
-PROVIDER_CONFIG = data/sessions
-; Session cookie name
-COOKIE_NAME = i_like_gogits
-; If you use session in https only, default is false
-COOKIE_SECURE = false
-; Enable set cookie, default is true
-ENABLE_SET_COOKIE = true
-; Session GC time interval, default is 86400
-GC_INTERVAL_TIME = 86400
-; Session life time, default is 86400
-SESSION_LIFE_TIME = 86400
-
-[picture]
-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 https://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`
-ENABLE = true
-; Path for attachments. Defaults to `data/attachments`
-PATH = data/attachments
-; One or more allowed types, e.g. image/jpeg|image/png
-ALLOWED_TYPES = image/jpeg|image/png
-; Max size of each file. Defaults to 32MB
-MAX_SIZE = 4
-; Max number of files per upload. Defaults to 10
-MAX_FILES = 5
-
-[time]
-; Specifies the format for fully outputed dates. Defaults to RFC1123
-; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
-; For more information about the format see http://golang.org/pkg/time/#pkg-constants
-FORMAT =
-
-[log]
-ROOT_PATH =
-; Either "console", "file", "conn", "smtp" or "database", default is "console"
-; Use comma to separate multiple modes, e.g. "console, file"
-MODE = console
-; Buffer length of channel, keep it as it is if you don't know what it is.
-BUFFER_LEN = 10000
-; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
-LEVEL = Trace
-
-; For "console" mode only
-[log.console]
-LEVEL =
-
-; For "file" mode only
-[log.file]
-LEVEL =
-; This enables automated log rotate(switch of following options), default is true
-LOG_ROTATE = true
-; Max line number of single file, default is 1000000
-MAX_LINES = 1000000
-; Max size shift of single file, default is 28 means 1 << 28, 256MB
-MAX_SIZE_SHIFT = 28
-; Segment log daily, default is true
-DAILY_ROTATE = true
-; Expired days of log file(delete after max days), default is 7
-MAX_DAYS = 7
-
-; For "conn" mode only
-[log.conn]
-LEVEL =
-; Reconnect host for every single message, default is false
-RECONNECT_ON_MSG = false
-; Try to reconnect when connection is lost, default is false
-RECONNECT = false
-; Either "tcp", "unix" or "udp", default is "tcp"
-PROTOCOL = tcp
-; Host address
-ADDR =
-
-; For "smtp" mode only
-[log.smtp]
-LEVEL =
-; Name displayed in mail title, default is "Diagnostic message from server"
-SUBJECT = Diagnostic message from server
-; Mail server
-HOST =
-; Mailer user name and password
-USER =
-PASSWD =
-; Receivers, can be one or more, e.g. 1@example.com,2@example.com
-RECEIVERS =
-
-; For "database" mode only
-[log.database]
-LEVEL =
-; Either "mysql" or "postgres"
-DRIVER =
-; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
-CONN =
-
-[cron]
-; Enable running cron tasks periodically.
-ENABLED = true
-; Run cron tasks when Gogs starts.
-RUN_AT_START = false
-
-; Update mirrors
-[cron.update_mirrors]
-SCHEDULE = @every 10m
-
-; Repository health check
-[cron.repo_health_check]
-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 =
-
-; Check repository statistics
-[cron.check_repo_stats]
-RUN_AT_START = true
-SCHEDULE = @every 24h
-
-[git]
-; 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 =
-
-; Operation timeout in seconds
-[git.timeout]
-MIGRATE = 600
-MIRROR = 300
-CLONE = 300
-PULL = 300
-GC = 60
-
-[mirror]
-; Default interval in hours between each check
-DEFAULT_INTERVAL = 8
-
-[api]
-; Max number of items will response in a page
-MAX_RESPONSE_ITEMS = 50
-
-[i18n]
-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,sr-SP,sv-SE,ko-KR,gl-ES
-NAMES = English,简体中文,繁體中文(香港),繁體中文(台湾),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano,Suomalainen,Türkçe,čeština,Српски,Svenska,한국어,Galego
-
-; 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
-lv-LV = lv
-ru-RU = ru
-ja-JP = ja
-es-ES = es
-pt-BR = pt-BR
-pl-PL = pl
-bg-BG = bg
-it-IT = it
-fi-FI = fi
-tr-TR = tr
-cs-CZ = cs-CZ
-sr-SP = sr
-sv-SE = sv
-ko-KR = ko
-gl-ES = gl
-
-; Extension mapping to highlight class
-; e.g. .toml=ini
-[highlight.mapping]
-
-[other]
-SHOW_FOOTER_BRANDING = false
-; Show version information about Gogs and Go in the footer
-SHOW_FOOTER_VERSION = true
-; Show time of template execution in the footer
-SHOW_FOOTER_TEMPLATE_LOAD_TIME = true \ No newline at end of file
diff --git a/gogs.changelog b/gogs.changelog
deleted file mode 100644
index 75c4e7f1ae52..000000000000
--- a/gogs.changelog
+++ /dev/null
@@ -1,510 +0,0 @@
-2016-03-19
-
- * V0.9.13
- Bug fix: Site admin cannot see private repositories on organization home page #2372
- Bug fix: Non-local users can reset their password #2811
- Bug fix: 500 when compare branches with name contains '#' #2822
- Bug fix: Potential concurrency issue with builtin SSH server #2850
- Improvement: Set HTML meta values for repository #2670
- Improvement: Able to search user with username and full name #2792
- Features: Support search user and repository on both explore page and admin panel #13
-
-2016-03-07
-
- * V0.9.0
- Bug fix: Panic when close issue through commit message #2697
- Bug fix: Panic when create issue with two or more labels using SQLite3 #2700
- Improvement: Able to test mail settings in admin panel #1531
- Improvement: Improve issue lable readability #2033
- Improvement: Add config options for Git operation timeout #2653 #2701 #2704
- Improvement: Able to delete current avatar of user and organization
- Features: More refined collaboration access rights #1146
- Features: Able to create pull requests between branches in same repository #1597
- Features: Able to checkout pull requests locally #1655
- Features: Able to delete Wiki page and entire data #2183
- Others: Add Finnish support
-
-2016-02-24
-
- * V0.8.43
- Bug fix: Old activities still visible for repositories that lost access #2148
- Bug fix: Issue references have bad links behind a reverse proxy sub-path #2229
- Bug fix: Line breaks in email is not in HTML format #2332
- Bug fix: Long webhook URL is truncated #2465
- Bug fix: Multiple Webhooks with Slack type send wrong payloads #2485
- Bug fix: Image path breaks when it contains space #2556
- Bug fix: 500 when edit wiki after transfer the repository #2558
- Bug fix: 500 after delete user when view releases #2596
- Bug fix: Wrong avatar_url field in webhook payload #2630
- Improvement: Able to config log path on install page #691
- Improvement: Add default_branch field to repository object in webhooks #1059
- Improvement: Display activities for close and reopen issues #1821
- Improvement: Able to fork mirror repository #2505
- Improvement: Highlight code blocks in issue page #2538
- Features: Add config option [markdown] CUSTOM_URL_SCHEMES to allows Markdown render custom URL schemes #2406
- Features: Support syntax highlight on diff view #2528
- Features: Support convert mirror repository to regular type #2607
-
-2016-01-30
-
- * V0.8.25
- Bug fix: Pull request can not change branch when both sides are organizations #2014
- Bug fix: Duplicate of files' name in directory #2254
- Bug fix: Rename organization redirects to old name #2268
- Bug fix: HTML pages are rendered in raw mode #2283
- Bug fix: Allow access to non-home pages of empty repository #2345
- Bug fix: 500 when viewing authentication-related pages #2349
- Bug fix: 500 when filename starts with ':' #2373
- Improvement: Add config option [server] SSH_ROOT_PATH to indicate directory of authorized_keys file #1436
- Improvement: Commit IDs use monospace fonts #2264
- Improvement: Truncate repository name if too long #2287
- Features: Support GitHub style Markdown checklist #1048
- Features: Add more APIs: user followers #1692
- Features: Support side-by-side diff view #1925 #2296
- Features: Support highlight inline diff #2335
-
-2015-12-18
-
- * V0.8.10
- Bug fix: Can't identify git version on Windows #2167
- Bug fix: Wiki preview does not work on Firefox #2171
- Bug fix: 500 when view repository watchers and stargazers with PostgreSQL #2176
- Bug fix: Cannot detect correct file encoding #2185
- Bug fix: Huge diff hangs
- Bug fix: Cannot handle non-commit tag
- Bug fix: Dashboard news feeds for organizations are wrong #2223
- Features: Add more APIs: user emails, organizations #1692
-
-2015-12-12
-
- * V0.8.0
- Bug fix: Cannot push repository with massive commits like Linux kernel #279
- Bug fix: SMTP authentication makes invalid assumption on protocol #2152
- Improvement: Send email when a new pull request is submitted #1612
- Improvement: Auto login after install if admin is configured #1627
- Improvement: Disable change username and password for non-local users #1374 #1938 #2154
- Improvement: Able to config git fsck timeout #1943
- Improvement: Able to show and edit mirror address on repository pages #1984
- Improvement: Do not show content of issue in activity timeline #2029
- Improvement: Show author email in commit diff #2035
- Improvement: Able to change mirror source address
- Improvement: Add "New Mirror" button on dashboard #2037
- Improvement: Able to set external URL for wiki #2114
- Features: Able to limit repository creation per user #1575
- Features: Able to select branch in commits page #1846
- Others: Drop 0.5.x support, minimum auto-migration version is 0.6.0.
-
-2015-12-07
-
- * V0.7.33
- Bug fix: LDAP search with non-ascii characters does not work #1139
- Bug fix: Delete repository does not remove its stars #2042
- Bug fix: Diff is not showing full content when has super long one line #2071
- Bug fix: Cannot create pull request on Windows #2093
- Improvement: Able to disable wiki/issues/pull requests of repository #1829
- Improvement: Able to trigger test webhook in web UI #1857
- Improvement: Able to batch delete system notices #2052
- Improvement: Able to delete repository in admin panel #2063
- Features: Support repository wiki #270
- Features: Support issue links are rendered for external tracker #890
- Features: Add more APIs: public keys #976
-
-2015-11-21
-
- * V0.7.19
- Bug fix: Bad syntax highlighting #670 #1315 #1549 #1712
- Bug fix: Broken copy link button #1168 #1396
- Bug fix: Broken download archive UI #1668
- Bug fix: Pull request does not support merge BIN diff #1922
- Bug fix: Test patch does not checkout correct base branch #1931
- Bug fix: Branch/tag selection has wrong z-index #1942
- Bug fix: Huge image does not display correctly in file view
- Bug fix: No links in email for admin created account #1979
- Bug fix: Repository description is not copied after forked #1981
- Bug fix: Forked repository's visibility is changed itself when update settings #1987
- Improvement: Sort collaborative repositories by last updated time in dashboard #1302
- Improvement: Able to delete a release #1383
- Improvement: Update default branch in Git repository while change in web view #1742
- Improvement: Show issue title and content in news feeds #1854
- Improvement: Show custom avatar for pushed commits list in news feeds
- Improvement: Able to use config option [other] SHOW_FOOTER_VERSION = true disable version display on non-admin pages' footer #1957
- Features: Admin can now view and edit settings of private repositories #493 #1401
- Others: New discussion forum http://forum.gogs.io/
-
-2015-11-12
-
- * V0.7.6
- Bug fix: Images in subdirectory does not have correct relative links #1904
- Bug fix: SSH operations do not handle mixed cases URL
- Bug fix: Wrong redirection after deleting system notice with sub-path #1930
- Improvement: Show current branch in commit overview #1572
- Improvement: Allow tab to button in issue view page and use enter or space bar to trigger click #1824 #1917
- Features: Able to start builtin SSH server by config option [server] START_SSH_SERVER = true
-
-2015-11-08
-
- * V0.7.0
- Bug fix: Admin e-mail does not allow root@localhost when install #470
- Bug fix: Wrong commits reference order on issue page #1602
- Bug fix: Inconsistent link of e-mail URL after sign up #1697
- Bug fix: Migrated repository incompatible with --all flag #1705
- Bug fix: Members of team has admin access can't close/reopen issues #1748
- Bug fix: Huge diff causes out of memory #1790
- Bug fix: Push returns fail message when no actual update needed #1896
- Bug fix: Wrong image link is rendered for relative links #1904
- Improvement: Detect file renames/moves in diffs #1078
- Improvement: Dashboard issues add sorting #1459
- Improvement: Allow import local repositories only for admin or permitted users #1511
- Improvement: Able to trigger mailer for admin created accounts #1525
- Improvement: Show clone URL with original cases #1895
- Features: Support pull requests #5
- Features: Auto-render clickable links for images #1433
- Features: Add config option [repository] FORCE_PRIVATE that allows forcing all new repositories to be private #1657
- Others: Drop Go 1.2.x support, minimum requirement of Go is 1.3
- Others: 0.5.x will no longer be supported in 0.8
-
-2015-09-26
-
- * V0.6.15
- Bug fix: 404 when Repository name contains "git" #1593
- Bug fix: Collaborative repositories missing suburl on dashboard #1594
- Bug fix: Duplicate commit references when push a new branch #1595
- Bug fix: Upload image does not handle suburl #1603
- Bug fix: New SSH keys with comments including whitespace are truncated #1622
- Bug fix: Change label title resets color #1659
- Improvement: Able to use GOGS_WORK_DIR environment variable to specify work directory
- Improvement: Enable login type conversion after account creation #748
- Improvement: Sort owners list by last changed time when create and migrate repositoriy #1585
- Features: Add TiDB backend database support
- Features: Add Emoji support #633
- Features: Able to disable captcha by config option [service] ENABLE_CAPTCHA = false #697
- Features: Able to restrict SMTP authentication to specific domains #1620
- Others: Drop social account login support
-
-2015-09-05
-
- * V0.6.9
- Bug fix: File name with double quotation mark makes the repository inaccessible #966
- Bug fix: Time zone trouble #1500
- Bug fix: Removing deploy key does not remove key #1535
- Improvement: Add webhook last delivery status, recent deliveries and new events
- Improvement: Auto-remember visibility of last created repository #965
- Improvement: Support BindDN and TLS in LDAP #1145
- Improvement: Significantly enhanced LDAP support #1476
- Improvement: Support ‘AUTH LOGIN’ in mailer #1517
- Improvement: Add [markdown] ENABLE_HARD_LINE_BREAK to enable Markdown hard line break extension
- Features: Add dashboard issues page for organization
- Features: Allow editing of past comments #1280
- Features: Support README template #1487
- Others: Add official Docker images
- Others: Change minimum password length to 1
- Others: Change minimum size of RSA to 1024 #1519
- Others: Change maximum size of e-mail to 254 #1579
-
-2015-08-16
-
- * V0.6.5
- Bug fix: Does not allow anonymous SSH clone
- Bug fix: Private repository cannot trigger webhook by pushing through SSH
- Bug fix: Owners cannot assign any issue to themselves #747
- Bug fix: Issue assignee doesn't show organisation members #839
- Bug fix: Can send multiple requests when create issue #1051
- Bug fix: Attachments a file said "Could not parse JSON" #1233
- Bug fix: Did not remove the temporary directory after initialized new repository #1331
- Bug fix: Rename organization doesn't restrict Chinese #1439
- Improvement: Allow custom avatar source #1457
- Feature: Add deploy key support #334
- Feature: Generate random avatar based on e-mail when disable Gravatar
- Feature: Able to sort issues
-
-2015-08-02
-
- * V0.6.3
- Bug fix: Label disappeared after edited a label #542
- Bug fix: Filename cut off in DIFF when containing spaces #985
- Bug fix: Migrate repository requires HTTPS address #1000
- Bug fix: Private repositories issues included in "Public Activity" #1112
- Bug fix: All users email are public #1127
- Bug fix: API calls are not hidden behind sign in #1128
- Bug fix: 404 on files with url-encoded names #1137
- Bug fix: It is possible to access user profiles using organization URL #1169
- Bug fix: Didn't check blank user name on LDAP #1207
- Bug fix: Generated certificate doesn't have CN with the hostname #1231
- Bug fix: Removing user from organization collaboration removes repositiory #1279
- Bug fix: Create repo for other users by hacking uid field #1289
- Improvement: Clearer error message for illegal characters #1070
- Improvement: Add full name field to admin's user edit page #1130
- Improvement: Hide organization email for non logged-in users #1204
- Improvement: Visit Repository home page with ".git" appended URL #1227
- Feature: Support realtime webhook #835
- Others: Add Italian language support.
- Others: Disable Macaron color log in production mode to improve performance
- Others: Show repository owner name in explore page #1150
-
-2015-03-26
-
- * V0.6.1
- Bug fix: Inline code markdown with leading hash is rendered as issue index #637
- Bug fix: Non-logged users can view organization page when REQUIRE_SIGNIN_VIEW = true #1101
- Bug fix: New release button is always available to everyone #1114
- Bug fix: Cannot update mirror repository after transfer ownership #1120
- Bug fix: Other member of teams in same organization get access to repository when teams do not have relations to the repository
- Bug fix: LDAP add and edit forms are misleading #1124
- Bug fix: Team member access lost when adding repository collaborator #1143
- Improvement: Hide Gravatar e-mail setting field when Gravatar is disabled #1098
- Improvement: Allow to migrate through git:// protocol #1105
- Improvement: Add config option [service] DISABLE_MINIMUM_KEY_SIZE_CHECK to not check minimum key size with corresponding type #1133
- Improvement: Do not exposure database password when it's not first time launch installation #1140
- Others: Use fake@gogs.local as default Git user.email setting rather than private e-mail #1089
-
-2015-03-19
-
- * V0.6.0
- Bug fix: Edit Account does not take into consideration password rules #851
- Bug fix: Person in multiple teams has incorrect access #858
- Bug fix: Issue label amount not updated on issue removal #933
- Bug fix: Can push to mirror repository #948
- Bug fix: Check template version before loading custom configuration #954
- Bug fix: Didn't check if attachments and avatars path in configuration is a absolutely path
- Bug fix: Duplicated suburl prefix in feeds #988
- Bug fix: Cannot delete repository with LDAP account #1006
- Bug fix: Cannot handle SubModule without a .gitmodules entry #1023
- Bug fix: HTTP/HTTPS push update function call panic #1037
- Bug fix: Missing suburl prefix on admin panel #1043
- Bug fix: Landing page setting does not consider suburl prefix #1055
- Bug fix: Missing link in bare repository page for Help #1082
- Improvement: Allow MySQL socket connection instead of TCP #872
- Improvement: Able to use TLS client certificate for SMTP #943
- Improvement: Fix: 504 5.5.2 : Helo command rejected #973
- Feature: Able to import local Git repositories #99
- Feature: Allow multiple e-mail addresses #755
-
-2015-01-05
-
- * V0.5.11
- Bug fix: Git SubModules result 500 error #741
- Bug fix: Showing activities for private repositories in user profile #751
- Bug fix: User who made activities no longer exists result 500 error #754
- Bug fix: Auto-input username in organization invite page includes full name
- Bug fix: Mirror repository does not work with SQLite3 #805
- Bug fix: Wrong image address when rendering Markdown files #808
- Bug fix: Improvements
- Bug fix: Able to skip verification when send mails and use TLS when port is 465 #761
- Bug fix: Optmize git-fsck config options #820
- Feature: Able to send mails with CRAM-MD5 authentication #762
-
-2014-12-13
-
- * V0.5.9
- Bug fix: Invalid links to user profile page in admin panel
- Bug fix: Templating error on settings page of bare repository #643
- Bug fix: Panic when no SSH authorized_keys file exists for command gogs fix location #659
- Bug fix: Commits list doesn’t show the oldest page #664
- Bug fix: User home links in issue page no longer invalid #682
- Bug fix: Avatar email addresses with uppercase resolve to wrong Gravatar hash #700
- Bug fix: Markdown table requires padding #703
- Bug fix: Cannot display GBK content in diff page #711
- Bug fix: HTTP basic authentication failed when password contains : #723
- Improvement: Expose full_name in user search API #677
- Improvement: Added issue link rendering in commit messages #712
- Feature: Able to upload custom avatar #139
- Feature: Able to set explore page as non-logged users’ landing page through config option [server] LANDING_PAGE #543
- Feature: Run git fsck as cron job and git gc as admin operation #580
- Feature: Able to view public key list of user by /:username.keys #652
- Feature: Add Latvian languages.
-
-2014-11-19
-
- * V0.5.8
- Bug fix: Fix vulnerabilities CVE-2014-8681 CVE-2014-8682 CVE-2014-8683
- Bug fix: Branch/tag name cannot contain / #101 #255
- Bug fix: ENABLE_GZIP options does not work #412
- Bug fix: Line numbers are misaligned on Firefox #457
- Bug fix: Git hook does’t filter \r character #546
- Bug fix: File view raw and history buttons don’t show #550
- Bug fix: Some small problems about the alignment #554
- Bug fix: Redis as cache adapter does not work
- Bug fix: Cannot show relative path image in Markdown files
- Bug fix: UI break when commit message is very long #570
- Bug fix: HTTP/HTTPS clone does not handle GZIP encoding #572
- Bug fix: Cannot see private repositories when view own profile page #605
- Bug fix: Wrong MIT LICENSE content file #608
- Improvement: Allow collaborators to see private repositories in profile page
- Feature: Able to fork repository #5
- Feature: Drone CI integration #12
- Feature: Able to view comparison page for 2 commits
- Feature: Able to set [picture] GRAVATAR_SOURCE = duoshuo to use Chinese mirror of Gravatar
- Feature: Able to delete all repositories archives through admin panel #635
-
-2014-10-10
-
- * V0.5.5
- Bug fix: Cannot download repository archive #495
- Bug fix: Cannot view repository by tag
- Bug fix: Cannot transfer repository from organization to individual
- Bug fix: Error occurs when owner transfers repository to its collaborator
- Bug fix: Does not support annotated tag #515
- Bug fix: Broken authentication logic
- Improvement: Improve e-mail security #249
- Improvement: Fix missing inline code Markdown style #491
- Improvement: Add directory level commit message in repository list view
- Improvement: Change issue title length limitation to 255 characters #522
- Improvement: Allow mail with self-signed certificates
- Improvement: Allow custom locale files
- Feature: Add support for Git hooks #264
- Feature: Allow Gogs to run from a suburl behind a reverse proxy #463
- Feature: Add gogs cert command to generate files for self-signed HTTPS #487
- Feature: Add support for custom robots.txt
- Feature: Add basic support for submodule
- Feature: Add French, Dutch and Traditional Chinese languages.
- Feature: Add system notices for admin.
-
-2014-09-18
-
- * V0.5.2
- Bug fix: Incorrect permission check of ~/.ssh/ #458
- Bug fix: Can access some pages without signin with REQUIRE_SIGNIN_VIEW=true #464
- Bug fix: Templating error html/template: "user/activate" is undefined #465
- Bug fix: Missing arguments in TimeSince #473
- Bug fix: Wrong action permission check in organization dashboard #474
- Bug fix: Cannot add new SSH Key in Windows #475
- Bug fix: Cannot transfer repository ownership #481
- Improvement: Downgrade Git requirement to 1.7.1 #476
- Improvement: Add French translation #479
- Improvement: Add git -> MAX_GITDIFF_LINES option to set max show line numbers of Git Diff page
- Other: Demo site use HTTPS with new domain https://try.gogs.io
-
-2014-09-15
-
- * V0.5.0
- Bug fix: Panic when view releases that were created by Gogs #197
- Bug fix: Content lost if user changes milestone or assignee #216
- Bug fix: Webhook doesn’t deliver for SSH pushes #242
- Bug fix: Mirror repositories are not updated at all #258
- Bug fix: Not able to serve static files in Windows #271
- Bug fix: Dashboard issue link is incomplete #273
- Bug fix: Collaborators are able to change repository settings
- Bug fix: Edit issue label does not require repository owner or collaborator #303
- Bug fix: Milestone issue stats not update when reopening/closing issue #340
- Bug fix: Incorrect max/min limitation error message #340
- Bug fix: Missing trailing ‘/’ in ROOT_URL causes problems #367
- Bug fix: SSH keys that include new lines can’t be deleted from authorized_keys #370
- Improvement: Add webhook section for configuring web hook task interval and deliver timeout
- Improvement: Add download TAR.GZ button in repository viewer
- Improvement: Sort releases by created time if they have same number of commits #199
- Improvement: Add Git installation and version check in start
- Improvement: Able to show precise time on commit page #281
- Improvement: Make possible for administrators to change user’s password #291
- Improvement: Add more SSH key type verification support #293
- Improvement: Allow clickable links in the repository description #300
- Improvement: Allow /:username as user home page route
- Improvement: Change passoword length limitation to 255 #340
- Improvement: Add .mkd as Markdown file extension #362
- Improvement: Allow . in repository name #453
- Feature: Add command gogs fix location <old path> to handle Gogs app location change
- Feature: Support edit release and save as draft
- Feature: Add cron task and running process monitor panel
- Feature: Add database adapter for logging
- Feature: Add delete all inactivate accounts operation in admin panel
- Feature: Add reverse proxy authentication support #165
- Feature: Add application level GZIP support by server -> ENABLE_GZIP config option.
- Feature: Closing issues through commits #302
- Feature: Able to star/unstar a repository
- Feature: Ability to attach files to issues (attachments) #307
- Feature: Able to create/manage/delete organization with team management
- Feature: Add Slack webhook integration #379
- Feature: Add Organization-level Webhooks #442
- Other: Official website brand new design(gogs.io)
- Other: Whole site new UI design
- Other: Most of pages implement multiple languages
- Other: Add Ubuntu install package #455
-
-2014-06-02
-
- * V0.4.1:
- Bug fix: Cannot clone through SSH with non-default port(22) #94
- Bug fix: Cannot migrate repository when use PostgreSQL #141
- Bug fix: Show private repository activities on public activities list #148
- Bug fix: Does not verify admin user name in install page #149
- Bug fix: Does not update all accesses when change user name #150
- Bug fix: Panic when no master branch
- Bug fix: Panic when delete a branch #155
- Bug fix: Redirect to 404 page when commenter is not the repository owner #159
- Bug fix: Show 500 page when poster of issue no longer exists #167
- Bug fix: Using @ in code block tries to make a mention #178
- Improvement: Able to unbind social account from database
- Improvement: Add mail notification for new comment and mentioned in new comment
- Improvement: Add comment on issue activity
- Improvement: Add clean unbind OAuthes operation in admin panel
- Improvement: Underlying system of issue tracker
- Improvement: Able to log message to different adapters by level at same time
- Improvement: Show collaborative repositories in dashboard
- Improvement: Able to preview option for editing of issue #204
- Improvement: Able to set GOGS_CUSTOM envrionment variable to set global custom path #209
- Improvement: Add log -> ROOT_PATH option for custom log file path #209
- Feature: Support SMTP authentication #8
- Feature: Support user name contains dot . #91
- Feature: Support add/remove repository collaborators
- Feature: Add server -> DISABLE_ROUTER_LOG option for disabling router log
- Feature: Add picture -> DISABLE_GRAVATAR option for disabling Gravatar
- Feature: Add command gogs dump for dumping files and database
- Feature: Support webhook services #98
- Feature: Add read/unread status to issue
- Feature: Add assignee to issue
- Feature: Add history page for file #166
- Feature: Support add custom .gitignore and license files by adding them to custom/conf/gitignore and custom/conf/license #174
- Feature: Add milestone to issue tracker
- Feature: Support download tar.gz for releases #186
- Feature: Add server -> STATIC_ROOT_PATH option for indicating custom template and static file path #209
- Other: Official website online(gogs.io)
- Other: Support install with Vagrant(note)
- Other: Support install from AUR packages #176
-
-2014-04-28
-
- * V0.3.1 :
- Bug fix: Panic when try to get author of tag when there isn’t one #92
- Bug fix: Problems with Docker setup scripts #124 #129
- Bug fix: Picture overflows when size is extremely large in single file page
- Improvement: Remember database option status in install page
- Feature: Basic support for LDAP/Microsoft Active Directory #112
- Feature: Offline mode to disable fetch static resources from CDN
- Feature: Support log in by e-mail
- Other: Batch of typo and grammar fix
- Other: Solution for MySQL initialization error when use wrong engine(note)
- Other: Make SQLite3 as default database option when enabled
-
-2014-04-23
-
- * V0.3.0 :
- Bug fix: One-click copy button of clone URL in repository viewer doesn’t work(note)
- Bug fix: Doesn’t delete corresponding accesses, watches when delete user
- Bug fix: Server log doesn’t log into correct file
- Improvement: Add corresponding issue link to create issue notify mail
- Improvement: Add salt for every single user
- Improvement: Use PBKDF2 and user salt for encoding user password(note)
- Improvement: Huge time, CPU and memory reduction of getting repository files
- Improvement: Show commits list by page, not all at once
- Improvement: Use build tag to enable SQLite3 support(note)
- Feature: Support rename repository/user
- Feature: Support transfer repository
- Feature: Support reset user password
- Feature: Support detect @someone, #issueNum, SHA1 and issue link in markdown render
- Feature: Support mail notify for someone is mentioned in creating issue
- Feature: Support go get in meta block
- Feature: Support setting default branch
- Feature: Support HTTP(S) push
- Feature: Support search commits by keyword in specific branch
- Feature: Support private repository
- Feature: Support migrate and mirror public/private repository
- Feature: Support social account login(GitHub, Google, QQ, Weibo)
- Feature: Support view and add new release(use existing tag or create a new one)
- Feature: Support download zip archive from any given commit
- Feature: Support browse code by tag
- Other: Support deploy with Docker(note)
- Other: Git version requirement for both server and client sides become v1.6.6(Smart HTTP support).
-
-2014-04-01
-
- * V0.2.0 :
- First public release.
diff --git a/gogs.install b/gogs.install
index c016f01831e6..9e139659d257 100644
--- a/gogs.install
+++ b/gogs.install
@@ -1,39 +1,22 @@
-pre_install() {
- if ! getent group gogs >/dev/null; then
- groupadd --system gogs
- fi
- if ! getent passwd gogs >/dev/null; then
- useradd -m --system -c 'gogs daemon users' -g gogs -s /bin/false gogs
- fi
- chsh gogs -s /bin/bash
-}
-
-post_install(){
- mkdir -p /var/log/gogs
- chown -R gogs:gogs /var/log/gogs
- chown -R gogs:gogs /srv/gogs
-
- systemctl daemon-reload
-}
-
-pre_upgrade(){
- pre_install $1
+post_install() {
+cat <<EOF
+:: If you do not have a custom configuration files finish the setup:
+ 1) systemctl start gogs.service
+ 2) open the installation page http://localhost:3000
+ otherwise:
+ place your custom configuration files in /var/lib/gogs/custom
+EOF
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- systemctl stop gogs.service
- systemctl disable gogs.service
-}
+ if [ $(vercmp 2:0.9.140 $2) -gt 0 ]; then
+ echo ":: Gogs configuration now placed in /var/lib/gogs/custom/conf"
-post_remove() {
- if getent passwd gogs >/dev/null; then
- userdel -r gogs
- fi
- if getent group gogs >/dev/null; then
- groupdel gogs
- fi
+ if [ ! -f /var/lib/gogs/custom/conf/app.ini ] && [ -f /srv/gogs/conf/app.ini ]; then
+ echo ":: Gogs app.ini copied to new place"
+ install -d -o gogs -g gogs /var/lib/gogs/custom
+ install -d -o gogs -g gogs /var/lib/gogs/custom/conf
+ install -m644 -o gogs -g gogs -t /var/lib/gogs/custom/conf /srv/gogs/conf/app.ini
+ fi
+ fi
}
diff --git a/gogs.service b/gogs.service
new file mode 100644
index 000000000000..14f15c1ba319
--- /dev/null
+++ b/gogs.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Gogs (Go Git Service)
+After=network.target
+
+[Service]
+Type=simple
+User=gogs
+Group=gogs
+Environment="GOGS_WORK_DIR=/var/lib/gogs"
+WorkingDirectory=/var/lib/gogs
+ExecStart=/usr/bin/gogs web
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/gogs.service.patch b/gogs.service.patch
deleted file mode 100644
index 519d02c19a48..000000000000
--- a/gogs.service.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-12,15c12,15
-< User=git
-< Group=git
-< WorkingDirectory=/home/git/gogs
-< ExecStart=/home/git/gogs/gogs web
----
-> User=gogs
-> Group=gogs
-> WorkingDirectory=/srv/gogs/
-> ExecStart=/usr/share/gogs/gogs web --config /srv/gogs/conf/app.ini
-17c17
-< Environment=USER=git HOME=/home/git
----
-> Environment=USER=gogs HOME=/home/gogs
diff --git a/gogs.sysusers b/gogs.sysusers
new file mode 100644
index 000000000000..223099f2bd27
--- /dev/null
+++ b/gogs.sysusers
@@ -0,0 +1 @@
+u gogs - "Go Git Service" /var/lib/gogs
diff --git a/gogs.tmpfiles b/gogs.tmpfiles
new file mode 100644
index 000000000000..fd7743fed86f
--- /dev/null
+++ b/gogs.tmpfiles
@@ -0,0 +1,2 @@
+d /var/lib/gogs 0700 gogs gogs -
+d /var/log/gogs 0750 gogs log -
diff --git a/gogs_new.service b/gogs_new.service
deleted file mode 100644
index 574d74973a45..000000000000
--- a/gogs_new.service
+++ /dev/null
@@ -1,20 +0,0 @@
-[Unit]
-Description=Gogs (Go Git Service)
-After=syslog.target
-After=network.target
-#After=mysqld.service
-#After=postgresql.service
-#After=memcached.service
-#After=redis.service
-
-[Service]
-Type=simple
-User=gogs
-Group=gogs
-WorkingDirectory=/srv/gogs/
-ExecStart=/usr/share/gogs/gogs web --config /srv/gogs/conf/app.ini
-Restart=always
-Environment=USER=gogs HOME=/home/gogs
-
-[Install]
-WantedBy=multi-user.target \ No newline at end of file
diff --git a/gogs_old.service b/gogs_old.service
deleted file mode 100644
index 3d375b945b9f..000000000000
--- a/gogs_old.service
+++ /dev/null
@@ -1,20 +0,0 @@
-[Unit]
-Description=Gogs (Go Git Service)
-After=syslog.target
-After=network.target
-#After=mysqld.service
-#After=postgresql.service
-#After=memcached.service
-#After=redis.service
-
-[Service]
-Type=simple
-User=git
-Group=git
-WorkingDirectory=/home/git/gogs
-ExecStart=/home/git/gogs/gogs web
-Restart=always
-Environment=USER=git HOME=/home/git
-
-[Install]
-WantedBy=multi-user.target \ No newline at end of file