summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/advanced
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve migrations to support migrating ↵Lunny Xiao2019-05-071-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | milestones/labels/issues/comments/pullrequests (#6290) * add migrations * fix package dependency * fix lints * implements migrations except pull requests * add releases * migrating releases * fix bug * fix lint * fix migrate releases * fix tests * add rollback * pull request migtations * fix import * fix go module vendor * add tests for upload to gitea * more migrate options * fix swagger-check * fix misspell * add options on migration UI * fix log error * improve UI options on migrating * add support for username password when migrating from github * fix tests * remove comments and fix migrate limitation * improve error handles * migrate API will also support migrate milestones/labels/issues/pulls/releases * fix tests and remove unused codes * add DownloaderFactory and docs about how to create a new Downloader * fix misspell * fix migration docs * Add hints about migrate options on migration page * fix tests
* Allow Recaptcha service url to be configured (#6820)zeripath2019-05-021-0/+1
|
* Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631)zeripath2019-04-291-7/+17
|
* Trace Logging on Permission Denied & ColorFormat (#6618)zeripath2019-04-221-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add log.ColorFormat and log.ColorFormatted Structs can now implement log.ColorFormatted to provide their own colored format when logged with `%-v` or additional flags. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add basic ColorFormat to repository and user Signed-off-by: Andrew Thornton <art27@cantab.net> * Add basic ColorFormat to access and unit Signed-off-by: Andrew Thornton <art27@cantab.net> * Add ColorFormat to permission and on trace log it Signed-off-by: Andrew Thornton <art27@cantab.net> * Add log.NewColoredIDValue to make ID value coloring consistent Signed-off-by: Andrew Thornton <art27@cantab.net> * formatting changes * Add some better tracing to permission denied for read issues/pulls Signed-off-by: Andrew Thornton <art27@cantab.net> * Add Trace logging on permission denied Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove isTrace() check from deferred func * Adjust repo and allow logging of team * use FormatInt instead of Itoa * Add blank line Signed-off-by: Andrew Thornton <art27@cantab.net> * Update access.go
* Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)Richard Mahn2019-04-172-3/+5
|
* Add SUBJECT_PREFIX mailer config option (#6605)zeripath2019-04-171-2/+3
| | | | | | | | * Add SUBJECT_PREFIX mailer config option * Add space between subject prefix and subject (Change from Gogs) Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add oauth2 documentation (#6604)Jonas Franz2019-04-142-0/+100
| | | | | | | | | | | | | | | | * Add oauth2 documentation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Apply suggestions from code review Co-Authored-By: jonasfranz <info@jonasfranz.software> * Update docs/content/doc/advanced/oauth2-provider.md Co-Authored-By: jonasfranz <info@jonasfranz.software> * Update oauth2-provider.md
* Add option to disable refresh token invalidation (#6584)Jonas Franz2019-04-121-0/+1
| | | | | | | | | | | | | | | | | | * Add option to disable refresh token invalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add integration tests and remove wrong todos Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix typo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix tests and add documentation Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Issue indexer queue redis support (#6218)Lunny Xiao2019-04-082-5/+6
| | | | | | | | | | | | | | | | | | * add redis queue * finished indexer redis queue * add redis vendor * fix vet * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: lunny <xiaolunwen@gmail.com> * switch to go mod * Update required changes for new logging func signatures
* Quieter Integration Tests (#6513)zeripath2019-04-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * Rename BaseLogger to WriterLogger to help the creation of other providers * Don't export ColorBytes and ResetBytes from ColoredValues * Make integration tests only print logs if they fail * check can color before coloring * I always forget about MSSQL * Oh and use LEVEL in sqlite.ini * Make the test logger log at info - as it means you see the router * Remove empty expected changes * Make the migrations quieter too * Don't display SQL on error - it can be looked at in the file logs if necessary * Fix skip when using onGiteaRun
* Some logging documentation (#6498)zeripath2019-04-041-0/+396
|
* Better logging (#6038) (#6095)zeripath2019-04-021-3/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* More specific declaration of search disk space (#6338)Thomas McWork2019-03-161-1/+1
| | | Elaborate more on the code search storage space requirement
* Update third-party-tools.en-us.md (#6301)MysticBoy2019-03-111-0/+3
| | | Add Gitea Extension for Visual Studio
* Copyedit docs (#6275)Aidan Fitzgerald2019-03-096-32/+32
|
* Third party docs (#6282)John Olheiser2019-03-081-0/+33
|
* Integrate OAuth2 Provider (#5378)Jonas Franz2019-03-081-0/+7
|
* Doc updates for customization and installation. (#6176)John Olheiser2019-02-281-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Doc updates and changing default sqlite DB path Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update customizing locales and THEMES Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add link to templates directory Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add portion for final step of running Gitea Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add recommended to service file usage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Removed DB path change, moving to another PR Updated doc sentence structure Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert change to template wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move recommended run-type to top
* Add more tests and docs for issue indexer, add db indexer type for searching ↵Lunny Xiao2019-02-212-0/+19
| | | | | | | | | | | | | | from database (#6144) * add more tests and docs for issue indexer, add db indexer type for searching from database * fix typo * fix typo * fix lint * improve docs
* Makefile changes for Windows and easier development (#6103)John Olheiser2019-02-201-0/+2
| | | | | | | | * Added Go Path and node_modules to PATH * Uses npx now for generate-stylesheets * Uses `go env GOPATH` to calculate adding GOPATH/bin to PATH * Added note about installing Node 8.0+ to generate stylesheets * Added preferred Node version to CONTRIBUTING.md
* Implement "conversation lock" for issue comments (#5073)Lanre Adelowo2019-02-181-0/+3
|
* Allow to set organization visibility (public, internal, private) (#1763)Rémy Boulanouar2019-02-181-4/+5
|
* Update and expand information about building Gitea (#6019)zeripath2019-02-121-21/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update and expand building information Signed-off-by: Andrew Thornton <art27@cantab.net> * remove extraneous extra line Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix spelling mistake Signed-off-by: Andrew Thornton <art27@cantab.net> * Note about documentation for the website Signed-off-by: Andrew Thornton <art27@cantab.net> * More changes Signed-off-by: Andrew Thornton <art27@cantab.net> * Clarified the automatic build dependency * Update the from-source to match the hacking information * Extend quotes * Update required go and discord link Signed-off-by: Andrew Thornton <art27@cantab.net> * Update hacking-on-gitea.en-us.md Add in information about postcss
* Add option to close issues via commit on a non master branch (#5992)Lanre Adelowo2019-02-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixes #5957 * add tests to make sure config option is respected * use already defined struct * - use migration to make the flag repo wide not for the entire gitea instance Also note that the config value can still be set so as to be able to control the value for new repositories that are to be created - fix copy/paste error in copyright header year and rearrange import - use repo config instead of server config value to determine if a commit should close an issue - update testsuite * use global config only when creating a new repository * allow repo admin toggle feature via UI * fix typo and improve testcase * fix fixtures * add DEFAULT prefix to config value * fix test
* add default time out for git operations (#6015)Lunny Xiao2019-02-092-0/+3
|
* Feature - Pagination for git tree API (#5838)Richard Mahn2019-02-062-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Feature - Pagination for git tree API * Handles case when page is negative * Does a for loop over the start and end rather than all entries * Removed redundent logic * Adds per_page as a query parameter * Adds DEFAULT_GIT_TREES_PER_PAGE for settings, ran make fmt * Fix typo in cheat-sheet en * Makes page start at 1, generated swagger * Use updates to SDK * Updates to use latest sdk * Updates swagger for tree api * Adds test for GetTreeBySHA * Updates per PR reviews * Updates per PR reviews * Remove file * Formatting * Fix to swagger file * Fix to swagger * Update v1_json.tmpl * Fix to swagger file
* Allow Macaron to be set to log through to gitea.log (#5667)zeripath2019-02-051-0/+1
| | | | | | * Allow Macaron to be set to log through gitea.log Fix #4291
* add other session providers (#5963)techknowlogick2019-02-051-1/+1
|
* Make log mailer for testing (#5893)zeripath2019-02-021-1/+5
| | | | | | | | | | | | | | | | | | * Create log mailer for testing email settings Signed-off-by: Andrew Thornton <art27@cantab.net> * Switch on the log mailer for the integration tests This ensures that the sending mail process works Signed-off-by: Andrew Thornton <art27@cantab.net> * rename the from user for mysql/mssql * rename log sender to dummy sender * update the integration tests
* Config option to disable automatic repo watching (#5852)sebastian-sauer2019-01-271-0/+1
| | | | | | | | | Add a new config option to enable / disable the automatic watching of repos for new repositories and if a user is added to a team. Fixes #653 Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
* improve the releases api paging (#5831)Lunny Xiao2019-01-242-1/+8
| | | | | | * improve the releases api paging * add max limit on API paging
* Adapt documentation to renamed ENABLE_SWAGGER option (#5811)Peter Colberg2019-01-233-3/+3
| | | | | Updates documentation to account for the renamed ENABLE_SWAGGER_ENDPOINT from #3572 (commit a74426d631e3311cc3c460ae9917f76f0221f4de) Signed-off-by: Peter Colberg <peter@colberg.org>
* Add documentation for SHOW_REGISTRATION_BUTTON (#5778)techknowlogick2019-01-191-0/+1
| | | | * Fix #5737
* Make db connect more robust (#5738)Paul Brackin2019-01-191-0/+2
|
* update docs to include THEMES config value (#5752)Lanre Adelowo2019-01-171-0/+2
| | | | | | | | * update docs to include THEMES * Update app.ini.sample * Update config-cheat-sheet.en-us.md
* Support CORS headers to git smart http protocol (#5719)Lunny Xiao2019-01-141-0/+3
|
* Documentation: Clarity for HTTPS setups (#5626)v1.7.0-dev0x5c2019-01-031-3/+2
| | | | | | [https-setup] - Made it clearer that HTTP redirection is possible [config-cheat-sheet] - Clarified the behavihour of the redirection-related config keys
* Fix translation errors in doc advanced part (zh-cn) (#5112)BetaCat2018-12-231-1/+1
| | | | | | | | * ZH-CN translation of Advanced part * Fix translation errors * Resolve issues
* Support reverse proxy providing email (#5554)zeripath2018-12-181-0/+4
| | | This PR implements #2347
* improve the git-scm url's in docs and sample.ini (#5467)Roman2018-12-051-2/+2
| | | | | | | | | | | | | | * remove old git-version from git-scm url in app.ini The url includes the version of git, which is not required to view the page. If you open the page without the version you get the current version and it's possible to switch the used version. Signed-off-by: Roman <romaaan.git@gmail.com> * docs: mention the git-scm url for git configs Signed-off-by: Roman <romaaan.git@gmail.com>
* Explicitly decide whether to use TLS in mailer's configuration (#5024)Lanre Adelowo2018-11-261-3/+4
| | | | | | | | * explicitly decide on using TLS for mail connections * explicitly decide on using TLS for mail connections * keep compatibility
* [website] file rendering through external binaries (#5387)Juan Pablo Santos Rodríguez2018-11-231-0/+70
| | | | | | | | * #3758: [doc] file rendering through external binaries * fix subsections markup * include proposed changes from PR review
* Block registration based on email domain (#5157)Lanre Adelowo2018-11-141-0/+2
| | | * implement email domain whitelist
* Prometheus endpoint (#5256)Stanislav2018-11-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add prometheus collector and route * dep ensure -add github.com/prometheus/client_golang/prometheus * dep ensure -update github.com/golang/protobuf * add metrics to reserved usernames * add comment head in metrics package * fix style imports * add metrics settings * add bearer token check * mapping metrics configs * fix lint * update config cheat sheet * update conf sample, typo fix
* Clean up docs (#5274)techknowlogick2018-11-042-3/+7
| | | | | | | | | | | | * make docs more clear * make docs more clear * Add analytics * Update customizing-gitea.en-us.md * Update app.ini.sample
* Pass link prefixes to external markup parsers (#5201)Nicolas Lenz2018-10-301-0/+4
| | | | | | | | | | | | | | * Pass environment variables for URL prefixes to external markup parser Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com> * Document external markup link prefix environment variables Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com> * Run format on link prefix changes Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
* User action heatmap (#5131)kolaente2018-10-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added basic heatmap data * Added extra case for sqlite * Built basic heatmap into user profile * Get contribution data from api & styling * Fixed lint & added extra group by statements for all database types * generated swagger spec * generated swagger spec * generated swagger spec * fixed swagger spec * fmt * Added tests * Added setting to enable/disable user heatmap * Added locale for loading text * Removed UseTiDB * Updated librejs & moment.js * Fixed import order * Fixed heatmap in postgresql * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: kolaente <konrad@kola-entertainments.de> * Added copyright header * Fixed a bug to show the heatmap for the actual user instead of the currently logged in * Added integration test for heatmaps * Added a heatmap on the dashboard * Fixed timestamp parsing * Hide heatmap on mobile * optimized postgresql group by query * Improved sqlite group by statement
* ZH-CN translation of Advanced part (#5090)BetaCat2018-10-175-2/+269
|
* Remove zookeeper documentation (#4910)Fluf2018-09-111-1/+0
| | | Fix #3763
* Add sudo functionality to the API (#4809)zeripath2018-09-061-0/+4
|