summaryrefslogtreecommitdiffstats
path: root/routers/install.go
Commit message (Collapse)AuthorAgeFilesLines
* fix misspell (#1996)Bo-Yi Wu2017-06-181-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Add configuration option for default permission to create Organizations (#1686)Lauris BH2017-05-081-0/+2
|
* fix go get sub package and add domain on installation to let go get work ↵Lunny Xiao2017-04-211-0/+1
| | | | | | | | | | defaultly (#1518) * fix go get sub package and add domain on installation to let go get work defaultly * fix import sequence * fix .git problem
* Fixes 1019, install page SMTP user is required to (#1020)puffybsd2017-02-241-3/+3
| | | | | to be an email address. Signed-off-by: P.B. <puffybsd@yahoo.com>
* Cleanup log messagingGabriel Jackson2017-02-021-1/+1
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* Add Keep email private (see issue #571). (#571)derSuessmann2017-01-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE. - Add the new option to the install and admin/config pages. - Add the new option to app.ini in the service section. - Add the new option to the settings struct. - Add English text strings to i18n. - Add field KeepEmailPrivate to user struct. - Add field KeepEmailPrivate to user form. - Add option to UI. - Add using noreply email address if user has "Keep Email Private". An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit messages (and hopefully all other git log relevant places). The change relies on the fact that git commands should use user.NetGitSig(). - Add hiding of email address in UI, if user has set "Keep Email Private". - Add condition to show email address only on explore/users and user pages, if user has not set "Keep Email Private". - Add noreply email in API if set "Keep Email Private". - Add a new service setting NO_REPLY_ADDRESS. The value of this setting is used as the domain part for the user's email address in git log, iff he decides to keep his email address private. If the user decides to keep his email address private and this option is not set 'noreply.example.org' is used, which no MTA should send email to. Add NO_REPLY_ADDRESS to conf/app.ini.
* fix installation page ssh domain unavilableLunny Xiao2016-12-271-2/+2
|
* Git LFS support v2 (#122)Fabian Zaremba2016-12-261-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
* Enables mssql support (#383)btrepp2016-12-241-2/+4
| | | | | | | | | | | | | | | | | | | * Enables mssql support Port of dlobs work in gogs. Enables options in index.js Enables MSSQL as a database option in go. Sets ID to 0 on initial migration. Required for MSSQL insert statements. Signed-off-by: Beau Trepp <beautrepp@gmail.com> * Vendors in denisenkom/go-mssqldb Includes golang.org/x/crypto/md4 as this is required by go-msssqldb Signed-off-by: Beau Trepp <beautrepp@gmail.com>
* Fix random string generator (#384)Denis Denisov2016-12-201-11/+17
| | | | | | | | | | | * Remove unused custom-alphabet feature of random string generator Fix random string generator Random string generator should return error if it fails to read random data via crypto/rand * Fixes variable (un)initialization mixed assign Update test GetRandomString
* Added rel="noopener" to target="_blank" hrefs (#327)Bwko2016-12-021-1/+1
| | | | | | * Added rel="noopener" to target="_blank" hrefs * Replaced gogs.io/docs with docs.gitea.io
* golint fixed for modules/authLunny Xiao2016-11-271-5/+5
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-1/+1
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* Move init functions from routers/install to routers/init (#230)Lunny Xiao2016-11-241-69/+0
| | | | | | * move init functions from routers/install to routers/init * copyright typo
* golint fixed for parts of routers root, dev, user and org dirs (#167)Lunny Xiao2016-11-181-19/+24
| | | | | | | | * golint fixed for parts of routers root, dev and org dirs * add user/auth.go golint fixed * rename unnecessary exported to unexported and user dir golint fixed
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-14/+14
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Check unhandled errors (#128)Matthias Loibl2016-11-101-3/+14
|
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-12/+12
|
* #3589 LoadRepoConfig after ORM is initializedUnknwon2016-09-021-3/+3
|
* #2018 able to sync now for mirrorsUnknwon2016-08-301-0/+1
| | | | | - Refactor code to use sync.UniqueQueue - Closes #3509
* #3495 only start builtin SSH server after user finish installationUnknwon2016-08-271-7/+6
|
* #2852 code cleanupUnknwon2016-08-111-1/+1
|
* models: rename EnableTidb to EnableTiDBUnknwon2016-08-111-3/+3
|
* #3158 skip RUN_USER check on WindowsUnknwon2016-08-091-4/+3
|
* Add support for federated avatars (#3320)Sandro Santilli2016-08-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for federated avatars Fixes #3105 Removes avatar fetching duplication code Adds an "Enable Federated Avatar" checkbox in user settings (defaults to unchecked) Moves avatar settings all in the same form, making local and remote avatars mutually exclusive Renames UploadAvatarForm to AvatarForm as it's not anymore only for uploading * Run gofmt on all modified files * Move Avatar form in its own page * Add go-libravatar dependency to vendor/ dir Hopefully helps with accepting the contribution. See also #3214 * Revert "Add go-libravatar dependency to vendor/ dir" This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82. * Make federated avatar setting a global configuration Removes the per-user setting * Move avatar handling back to base tool, disable federated avatar in offline mode * Format, handle error * Properly set fallback host * Use unsupported github.com mirror for importing go-libravatar * Remove comment showing life exists outside of github.com ... pity, but contribution would not be accepted otherwise * Use Combo for Get and Post methods over /avatar * FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR * Fix persistance of federated avatar lookup checkbox at install time * Federated Avatars -> Enable Federated Avatars * Use len(string) == 0 instead of string == "" * Move import line where it belong See https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md Pity the import url is still the unofficial one, but oh well... * Save a line (and waste much more expensive time) * Remove redundant parens * Remove an empty line * Remove empty lines * Reorder lines to make diff smaller * Remove another newline Unknwon review got me start a fight against newlines * Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE On re-reading the diff I figured what Unknwon meant here: https://github.com/gogits/gogs/pull/3320/files#r73741106 * Remove newlines that weren't there before my intervention
* Replace gogs.io http links with https version (#3386)rugk2016-08-051-1/+1
|
* Refactor User.Id to User.IDUnknwon2016-07-241-1/+1
|
* Rename module: middleware -> contextUnknwon2016-03-111-4/+4
|
* Post work for #2637Unknwon2016-02-271-4/+4
| | | | Improve test cases, config settings, also show SSH config settings on admin config panel.
* Add new config option for builtin SSH serverUnknwon2016-02-251-2/+2
| | | | | | | Config option [server] SSH_LISTEN_PORT to the port the builtin SSH server will be listen. It can be different from SSH_PORT which is supposed to be exposed in the clone URL. This should solve the problem when user runs Gogs inside Docker container and still want to use builtin SSH server.
* Make markdown as an independent moduleUnknwon2016-02-201-1/+2
|
* Move cron module to independent packageUnknwon2016-02-201-1/+1
| | | | Make it easier to keep track of upstream changes and bug fixes
* Remove redundant nil check.Josh Frye2016-02-121-10/+0
|
* Set default log path if empty during installJosh Frye2016-02-121-0/+10
|
* Add install option for log pathJosh Frye2016-02-121-0/+10
|
* Merge pull request #2528 from andreynering/diff-sintax-highlight-733Unknwon2016-02-071-2/+2
|\ | | | | Enable syntax highlighting on diff view
| * Enable sintax highlighting on diff view. Close #733Andrey Nering2016-02-041-2/+2
| |
* | Not working, but slightly better...Kim "BKC" Carlbäcker2016-01-271-0/+3
|/
* fix #2189Unknwon2015-12-181-0/+3
|
* #2103 Ability to map extensions for syntax highlighting in configUnknwon2015-12-171-0/+2
|
* rename import pathUnknwon2015-12-151-1/+1
|
* #1984 Better mirror repo managementUnknwon2015-12-081-1/+2
|
* #1627 auto login after install if admin is configuredUnknwon2015-12-081-3/+9
|
* introduce git-shellUnknwon2015-11-261-0/+3
|
* #1681 some fixes for builtin SSH server on WindowsUnknwon2015-11-231-0/+1
|
* fix 1540 and experimental SSH server supportUnknwon2015-11-081-0/+6
|
* remove test code :dizzy_face:Unknwon2015-10-291-1/+0
|
* work on #470 and fix miror JS issue when choose targets on compare and pullUnknwon2015-10-291-0/+1
|
* New push to head repo of head branch: regenerate patch and retest applyUnknwon2015-10-241-0/+1
|