summaryrefslogtreecommitdiffstats
path: root/modules/setting
Commit message (Collapse)AuthorAgeFilesLines
* fix panic when push but the only log mode console is disabled by serv and ↵Lunny Xiao2017-02-221-0/+4
| | | | update commands (#1007)
* disable console output xorm log on ssh (#993)Lunny Xiao2017-02-211-3/+5
|
* Make Xorm log configurable (#174)Lunny Xiao2017-02-201-4/+87
| | | | | | | | | | * make xorm log configable * bug fixed for other sub commands except web * rebase and fix xorm log * bug fix for TrimSpace
* fix ssh domain default value to domain (#930)Lunny Xiao2017-02-151-1/+4
|
* feat: Able to disable non-admin to create new organization (#927)Bo-Yi Wu2017-02-141-0/+7
|
* feat: add git version on admin panel. (#921)Bo-Yi Wu2017-02-131-0/+1
|
* Implement archive cleanup (#885)Andrew2017-02-111-0/+16
| | | | | | | | | | | | | | | | * Implement archive cleanup Fixes #769 Signed-off-by: Andrew <write@imaginarycode.com> * Make sure to close the directory file * Resolve issues noted by @strk * edit cheatsheet app.ini [ci skip] * oops [ci skip]
* Add ENABLE_PPROF to app.ini and start pprof if true on localhost:6060 (#801)Matthias Loibl2017-02-051-1/+3
| | | | | | * Add ENABLE_PPROF to app.ini and start pprof if true on localhost:6060 * Add comment for golint to blank pprof import
* Allow using custom time format (#798)ʿAhed ʿid2017-02-041-1/+11
| | | | | | | | | | | | | | | * Allow using custom time format I need to use custom time format in `conf/app.ini' like FORMAT = 2006-01-02 15:04:05 so that Gitea will display '2017-01-30 08:41:49' check this answer for more constants to format date <http://stackoverflow.com/a/20234207/2570425> PS: First GO commit * Refactor and validate TimeFormat (must have 2006, 01, 02, 15, 04 and 05)
* Cleanup log messagingGabriel Jackson2017-02-021-30/+30
| | | | | | | | | 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.
* Merge pull request #736 from andreynering/fix-windows-sshAndrey Nering2017-01-251-1/+2
|\ | | | | Fix SSH server on Windows when running as service
| * Fix SSH server on Windows when running as serviceAndrey Nering2017-01-231-1/+2
| | | | | | | | Closes #680
* | Search bar for issues/pulls (#530)Ethan Koenig2017-01-251-0/+6
|/
* fix logfile name (#731)DWE2017-01-231-1/+1
|
* Add option to app.ini to enable local import paths (#724)Bwko2017-01-231-2/+4
|
* Remove the default console logger when it is not set in the configuration (#602)willemvd2017-01-171-0/+10
| | | | | | | | | | | | * Remove the default console logger when it is not set in the configuration * Added comment to new function (lint failure) * update based on PR comments (code style) * code style fix (thanks bkcsoft) * check if logger exists based on the l.outputs (like in l.DelLogger) instead of adapter, otherwise panic when reinstalling gitea (since the output adapter still exist, without outputs)
* Attach to release (#673)Philip Couling2017-01-151-1/+1
| | | | | | | | | | | | | | * Moved attachaments POST url from /issues/attachments to /attachments * Implemented attachment upload on release page * Implemented downloading attachments on the release page * Added zip and gzip files to default allowed attachments * Implemented uploading attachments on edit release * Renamed UploadIssueAttachment to UploadAttachment
* Don't create a default pid file (#637)Bwko2017-01-141-4/+2
|
* docs: update translation on homepage for zh-tw (#634)Bo-Yi Wu2017-01-111-1/+1
|
* refactor: check the error returned by os.MkdirAll()Bo-Yi Wu2017-01-091-1/+3
|
* feat: support pid file.Bo-Yi Wu2017-01-091-0/+23
|
* Add default SSH_LISTEN_PORT config value (#603) (#607)Manuel Kuhlmann2017-01-081-0/+1
|
* 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.
* 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