summaryrefslogtreecommitdiffstats
path: root/modules/setting
Commit message (Collapse)AuthorAgeFilesLines
* UI config to toggle whether user email shows up in Explore Users (#336)Thiago Avelino2017-01-011-0/+3
| | | | | | | | | | | | | | | | | | * UI config to toggle whether user email shows up in Explore Users * Recommendation made by @tboerger https://github.com/go-gitea/gitea/pull/336/commits/66a1c59fe730eff019ce100673c6800cce7d102d#r94122732 * fixed typo, rename ShowUserEmailInExplore to ShowUserEmail * Fixed typo merged conflict * Hide email in the user profile page if you are active ShowUserEmail ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725 * Please replace MustBool() with MustBool(true)
* add default values for SSH settings (#500)Lunny Xiao2016-12-291-25/+31
|
* Fix default cookie nameJoubert RedRat2016-12-271-1/+1
|
* Git LFS support v2 (#122)Fabian Zaremba2016-12-261-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement sendmail (#355)Philip Couling2016-12-251-3/+14
| | | | | | | | | | | | | | | | * Implemented sendmail. This piggybacks on existing configuration to keep the change simple * Changed privicy of new sendSMTP and sendSendmail functions * Fixed Lint errors * Seperated SMTP and sendmail into their own senders * Making new structs private as they should not be used externally now * Added sendmail setting to ini file * Minor code cleanup
* Simplified MinPasswordLength check (#475)Bwko2016-12-241-5/+1
|
* Added minimum password length to app.ini (#223)Bwko2016-12-241-0/+6
|
* Enables mssql support (#383)btrepp2016-12-241-0/+1
| | | | | | | | | | | | | | | | | | | * 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>
* Add default values for settings (#455)Lunny Xiao2016-12-232-24/+142
| | | | | | | | | | * add default values for settings * more default values * more default settings and labels resource * mv locale to options
* Bindata is optional and over-writable on restart (#354)Thomas Boerger2016-12-221-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
* fix bug #1122 log.smtp receiver configure error (#3602) (#451)Lunny Xiao2016-12-221-2/+2
|
* New settings option for a custom SSH host (#3763) (#446)Lunny Xiao2016-12-221-0/+1
| | | | | | * New settings option for a custom SSH host (#3763) * let default ssh listen addr empty
* Add support for using "libravatar" as the GravatarSourceSandro Santilli2016-12-191-0/+2
| | | | | Just to make it easier for administrator to configure libre avatar, as it is done for "duoshuo" and "gravatar"
* Autogenerate Version on build (#190)Kim "BKC" Carlbäcker2016-12-131-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | * Autogenerate Version On Build * Fixes * Changed Version to v0.9.0 * balls * I hate newlines * Don't remove .VERSION-file on `make clean` * v0.9.0 => 1.0.0 * damn new-lines... * Always rebuild templates/.VERSION * Delete .VERSION * Update Makefile
* Fixed project name on setting module key APP_NAMEAvelino2016-12-021-1/+1
|
* Get rid of bin folder within makefile, enabled TiDB (#319)Thomas Boerger2016-12-012-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Get rid of the bin folder within the build process Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped latest make task, it is unused Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Added tidb tag to drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the cert build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped useless minwinsvc build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the useless build tags from drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de>
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-28/+39
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-3/+3
| | | | | | | - 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
* Merge pull request #103 from strk/GOGS_dropSandro Santilli2016-11-071-3/+19
|\ | | | | Replace GOGS with GITEA in variable names
| * Replace GOGS with GITEA in variable namesSandro Santilli2016-11-071-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables as a fallback if the equivalent GITEA_* are not set, warning user about the need for change. Does not change "gogs" to "gitea" in webhook type name Because "gogs" hook type is part of the API (routes) and used in templates... Closes #87
* | Replace Gogs to Gitea in installation optionsJoubert RedRat2016-11-071-1/+1
|/
* Merge pull request #50 from 0xbaadf00d/feature/2583-disablehttpcloningRachid Zarouali2016-11-071-0/+2
|\ | | | | Disable HTTP cloning
| * rename variable + fix wiki linkThibault Meyer2016-10-041-1/+2
| |
| * Can disable GIT interactions by HTTP protocolThibault Meyer2016-09-181-0/+1
| |
* | Run goimports on the whole project (#34)Matthias Loibl2016-11-041-1/+1
| | | | | | Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* | Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-3/+3
| |
* | Fix sender of issue notificationsSandro Santilli2016-11-021-0/+9
| | | | | | | | | | | | | | It is the FROM field in mailer configuration that needs be used, not the USER field, which is for authentication. Closes https://github.com/gogits/gogs/issues/3615
* | Use proper url for libravatar depSandro Santilli2016-11-021-1/+1
|/
* Feature #3492: Add option to hide footer load times (#3562)Thibault Meyer2016-09-011-3/+5
| | | | | | * Add option to hide footer load times * Rename option variable + minor changes
* #2018 able to sync now for mirrorsUnknwon2016-08-301-0/+1
| | | | | - Refactor code to use sync.UniqueQueue - Closes #3509
* #2901 allow setting preferred licensesUnknwon2016-08-281-0/+1
| | | | - Closes #3488
* Minor naming improvementUnknwon2016-08-171-4/+5
|
* Code clean up for new config optionsUnknwon2016-08-141-29/+23
|
* Squashed commit of the following:Richard Mahn2016-08-141-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
* #2852 code cleanupUnknwon2016-08-111-10/+10
|
* Add initial support for unix sockets (#2852)Odin Ugedal2016-08-111-13/+24
|
* Fix typo CacheInternal -> CacheInterval (#3432)Thibault Meyer2016-08-111-2/+2
|
* Update bindata.go [CI SKIP]Unknwon2016-08-091-2/+3
|
* Feature #3398: Redefine global mirror interval (#3409)Thibault Meyer2016-08-091-0/+10
| | | | | | | | * add mirror::GLOBAL_INTERVAL on app.ini * rename key to DEFAULT_INTERVAL * add key on default app.ini + move code
* #3158 skip RUN_USER check on WindowsUnknwon2016-08-091-3/+18
|
* #3091 add config option for Git GCUnknwon2016-08-091-1/+2
|
* #3320 code cleanupUnknwon2016-08-071-7/+10
|
* Add support for federated avatars (#3320)Sandro Santilli2016-08-071-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* #3393 fix missing sub-url prefix in relative avatar linkUnknwon2016-08-071-0/+1
|
* Improve diff highlight (#3390)Andrey Nering2016-08-071-0/+1
| | | | | | - Try to reduce memory allocations - Add possibility to disable diff highlight (can improve performance for large diffs) - Tweaking with cost for prettier (cleaner) diffs - Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
* Use struct for UI settingsUnknwon2016-07-241-24/+20
|
* [Fix] Don't display way too large files #1513 (#3253)Kim Carlbäcker2016-07-121-0/+2
| | | | | | | | | | * Add MaxDisplayFileSize setting * Don't show files that are too large * Localized FileTooLarge * Change IsFileTooBig => IsFileTooLarge
* #3058 #3059 support correct page size and link headerUnknwon2016-07-041-16/+23
|
* change setting.go -> LocalUrl default value to (#3078)j.yao.SUSE2016-07-011-1/+1
|
* Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174)Andrey Nering2016-06-291-3/+5
|