Commit Graph
80 Commits
Author SHA1 Message Date
ydelafollye 8f2c577988 Improve users management through the CLI (#6001) (#10492)
* Fix images in wiki edit preview (#11546)

Make sure wiki editor sets wiki to true so gitea renders it as a wiki page.

Also change the context data attr for edit form. This looks wrong but everywhere else in our code assumes the urlPrefix to be just the repo url when rendering and manually adds /wiki to the rendered url regardless.

Fixes #11540
2020-10-15 22:48:38 -04:00
raoulb 48a798c5c1 Fix hugo shortcode typo in faq (#12987)
* Fix hugo shortcode typo in faq

* Switch to using language tags
2020-09-30 16:59:30 -04:00
65d451e903 Clarification on the use of certificate chains (#12986)
* Clarification on the use of certificate chains

* As per @bagasme

Co-authored-by: Bagas Sanjaya <[email protected]>

Co-authored-by: zeripath <[email protected]>
Co-authored-by: Bagas Sanjaya <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2020-09-30 12:16:13 -04:00
5490cd5c0e Issue templates directory (#11450)
* Issue templates

Signed-off-by: jolheiser <[email protected]>

* Add some comments, appease the linter

Signed-off-by: jolheiser <[email protected]>

* Add docs and re-use dir candidates

Signed-off-by: jolheiser <[email protected]>

* Add default labels to issue templates

Signed-off-by: jolheiser <[email protected]>

* Generate swagger

Signed-off-by: jolheiser <[email protected]>

* Suggested changes

Signed-off-by: jolheiser <[email protected]>

* Update issue.go

* Suggestions

Signed-off-by: jolheiser <[email protected]>

* Extract metadata from legacy if possible

Signed-off-by: jolheiser <[email protected]>

Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2020-09-11 10:48:39 -04:00
zeripath b0ae3edc04 Add command to recreate tables (#12407)
Provides new command: `gitea doctor recreate-table` which will recreate
db tables and copy the old data in to the new table.

This function can be used to remove the old warning of struct defaults being
out of date.

Fix #8868
Fix #3265
Fix #8894

Signed-off-by: Andrew Thornton <[email protected]>
2020-09-06 22:52:01 +01:00
Lauris BH 3aae984bfd Add spent time to referenced issue in commit message (#12220) 2020-09-04 11:37:37 -04:00
John Olheiserandmrsdizzie 5619b0bbd3 Initial support for push options (#12169)
* Initial support for push options

Signed-off-by: jolheiser <[email protected]>

* Fix misspelling 🤦

Signed-off-by: jolheiser <[email protected]>

* Fix formatting after conflict resolution

* defer close git repo

* According the GitLab documentation, git >= 2.10

Signed-off-by: jolheiser <[email protected]>

* Words are hard. Thanks @mrsdizzie 😅

Co-authored-by: mrsdizzie <[email protected]>

* Only update if there are push options

Signed-off-by: jolheiser <[email protected]>

Co-authored-by: mrsdizzie <[email protected]>
2020-08-23 17:02:35 +01:00
zeripathandFlorian Klink f1c9434901 Make the default PID file compile-time settable (#12485)
#12391 offered to change the default PID file from /var/run/gitea.pid however in discussion it was decided that this could break users of older systems. An alternative was offered that we could make the PID file compile/link time settable.

This PR does this, and changes the name of the setting from CustomPID to simply PIDFile. It also updates the from-source docs to show how to change the compiler settings to do this.

Closes #12391

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: Florian Klink <[email protected]>
2020-08-15 21:15:27 +01:00
Ben Harris df8a3ccf8d Use correct make target for building static assets (#12247)
The webpack make target does not build semantic-ui
2020-07-14 15:45:23 -04:00
aea3818e79 Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777)
* Make LogDescriptions race safe

* Add manager commands for pausing, resuming, adding and removing loggers

Signed-off-by: Andrew Thornton <[email protected]>

* Placate lint

* Ensure that file logger is run!

* Add support for smtp and conn

Signed-off-by: Andrew Thornton <[email protected]>

* Add release-and-reopen

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
2020-07-05 20:07:07 -04:00
TLZandtechknowlogick 903d775c58 Update Caddy reverse-proxy instructions (#11655)
Co-authored-by: techknowlogick <[email protected]>
2020-05-30 22:16:32 -04:00
zeripathandguillep2k fb2917ef1c Add warning to mailer documentation about authentication (#11563)
* Add warning to mailer documentation about authentication

References #7966

Signed-off-by: Andrew Thornton <[email protected]>

* As per @guillep2k and @mrsdizzie

* as per @mrsdizzie

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: guillep2k <[email protected]>
2020-05-24 23:56:18 +01:00
maxm123andguillep2k 9675ffd037 Add charset handling to backup/restore doc (#11062)
Co-authored-by: guillep2k <[email protected]>
2020-04-13 23:55:20 -03:00
zeripathandLauris BH 1449b6fa4b Add docs for gmail (#10995)
Fix #10971

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: Lauris BH <[email protected]>
2020-04-06 16:18:42 -04:00
zeripathandmrsdizzie 7872ea2d47 Add IIS Reverse Proxy documentation (#10881)
* Add IIS Reverse Proxy documentation

@mahdiit in #10748 described how to set up IIS as a reverse proxy. This
PR adds these to our documentation.

Close #10748

Signed-off-by: Andrew Thornton <[email protected]>

* Update docs/content/doc/usage/reverse-proxies.en-us.md

Co-Authored-By: mrsdizzie <[email protected]>

Co-authored-by: mrsdizzie <[email protected]>
2020-03-30 00:11:15 +03:00
211f335e62 Documentation - updated email setup (#10695)
* Updated email setup documentation to include sendmail option

* Update docs/content/doc/usage/email-setup.en-us.md

full path to sendmail

Co-Authored-By: mrsdizzie <[email protected]>

* Update docs/content/doc/usage/email-setup.en-us.md

docker image does not have sendmail

Co-Authored-By: Antoine GIRARD <[email protected]>

* Update docs/content/doc/usage/email-setup.en-us.md

Co-Authored-By: Antoine GIRARD <[email protected]>

* Update docs/content/doc/usage/email-setup.en-us.md

Co-Authored-By: James Lakin <[email protected]>

* Update docs/content/doc/usage/email-setup.en-us.md

Co-Authored-By: James Lakin <[email protected]>

Co-authored-by: 8ctopus <[email protected]>
Co-authored-by: mrsdizzie <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Antoine GIRARD <[email protected]>
Co-authored-by: James Lakin <[email protected]>
2020-03-13 16:20:14 +01:00
Lauris BH 38ab26185e Add restricted user filter to LDAP authentication (#10600)
* Add restricted user filter to LDAP authentification

* Fix unit test cases
2020-03-05 08:30:33 +02:00
66afeb21ac Update static resources documentation (#10270)
Signed-off-by: Gary Kim <[email protected]>

Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: zeripath <[email protected]>
2020-02-16 01:00:40 +02:00
John Olheiser 1199d6b34d More expansions in template repositories (#10021)
* Super expansion
* Explain which features are in 1.11 vs 1.12
* Move imports

Signed-off-by: jolheiser <[email protected]>
2020-01-28 13:57:15 +00:00
David Svantessonandzeripath e333f3f064 Explicitly refer to PR in squash-merge commit message in case of external tracker (#9844)
* Explicitly refer to PR in squash-merge commit message in case of external tracker

* documentation

Co-authored-by: zeripath <[email protected]>
2020-01-18 12:40:43 +08:00
Lunny Xiao 2914eb2781 Add a new command doctor to check if some wrong configurations on gitea instance (#9095)
* add doctor

* Add a new command doctor to check if some wrong configurations on gitea instance

* fix import

* use regex match authorized_keys on doctor

* Add documentation
2020-01-11 15:24:57 +01:00
Bagas Sanjaya c4bde63742 [Docs] Grammar Edit on Enabling HTTPS Using Reverse Proxy (#9649)
* Use infinitives for accept and pass

* Close parentheeses for proxy exposed
2020-01-08 10:20:15 +01:00
Erwan Colinandzeripath be5b88610e Correct a language error in reverse proxy doc (#9455)
* Correct a language error in reverse proxy doc

* Apply suggestions from code review

Co-Authored-By: zeripath <[email protected]>

Co-authored-by: zeripath <[email protected]>
2019-12-27 14:17:26 +02:00
Bagas Sanjayaandtechknowlogick 1020da4860 [Docs] Clarify HTTPS Termination Proxy on Using Reverse Proxy to Enable HTTPS (#9491)
* Clarification note for HTTPS termination proxy method

* Textual grammar edit

* Mention ROOT_URL

* Apply suggestion by mrsdizzie

Co-authored-by: techknowlogick <[email protected]>
2019-12-26 13:05:05 +08:00
NZTim 0b24212567 Apache configuration for Let's Encrypt webroot validation (#9438) 2019-12-20 19:58:26 +02:00
zeripath c98a365500 AuthorizedKeysCommand should not query db directly (#9371)
* AuthorizedKeysCommand should not query db directly

* Update routers/private/internal.go

* Fix import order
2019-12-16 20:49:07 -05:00
Justin R. Cutler c996b2dca6 Correct port range for cap_net_bind_service (#9306) 2019-12-09 14:20:09 -05:00
David Svantesson 2a891a2c26 Redirect issue if repo has configured external tracker. (#9247)
* Redirect issue if repo has configured external tracker.

* Handle error

* Add tests for redirect

* Fix test consistency
2019-12-06 23:21:18 -05:00
guillep2k b6b988ed2a Alternate syntax for cross references (#9116)
* Add support for local vs. remote xrefs

* Add doc for references

* Docs: fix cases not currently supported

* One more doc fix

* Doc: mentions for teams and orgs

* Change !num ref concept, no change in functionality

* Fix test

* Improve table of issue reference types

* Fix paragraph mark
2019-12-01 15:57:05 +02:00
Florian Hübner 1c38002190 Fix typo in doc (#8914)
Fix typo in doc fail2ban-setup.md
2019-11-10 20:33:28 -05:00
John Olheiserandguillep2k 422ed5bcf1 Add password reset to FAQ (#8883)
* Add password reset to FAQ

Signed-off-by: jolheiser <[email protected]>

* Add links to email setup docs

Signed-off-by: jolheiser <[email protected]>

* Add en-us to email setup

Signed-off-by: jolheiser <[email protected]>

* Update docs/content/doc/help/faq.en-us.md

Co-Authored-By: guillep2k <[email protected]>

* Manually merge changes from @guillep2k and add small changes

Signed-off-by: jolheiser <[email protected]>
2019-11-08 14:44:18 -05:00
John Olheiser cdac1bfb5f Add migrate command to docs (#8842)
* Add migrate command to docs

Signed-off-by: jolheiser <[email protected]>

* Link to CLI

Signed-off-by: jolheiser <[email protected]>

* Clarify idempotence

Signed-off-by: jolheiser <[email protected]>

* Sneak in convert command

Signed-off-by: jolheiser <[email protected]>
2019-11-05 13:54:54 -05:00
Nathaniel Sabanski 024f23c563 Docs: Added instructions for Docker fail2ban configuration. (#8642) 2019-10-23 15:07:32 +01:00
Jakob Ackermann 0d130c26cf [assets] configurable URL for static resources (#7911)
* static url

* add cors support for static resources

* [assets] work on the migration to configurable url for assets

Signed-off-by: Jakob Ackermann <[email protected]>

* [misc] fix whitespace

Signed-off-by: Jakob Ackermann <[email protected]>

* [assets] fix the loading of the manifest.json

It is generated dynamically, and as such can not be served by the cdn.

Signed-off-by: Jakob Ackermann <[email protected]>

* Revert "add cors support for static resources"

This reverts commit 42f964fd181dbb8b139808b9be623470d4f0e40f

Signed-off-by: Jakob Ackermann <[email protected]>

* [docs] add the STATIC_URL_PREFIX option

Signed-off-by: Jakob Ackermann <[email protected]>

* [docs] reverse-proxy: nginx: add two setups for STATIC_URL_PREFIX

Signed-off-by: Jakob Ackermann <[email protected]>

* [assets] migrate the url of a new asset to the static url prefix

REF: f2a3abc683ad4b2177b7c7c6160a2c0b4316120a
Signed-off-by: Jakob Ackermann <[email protected]>
2019-10-22 20:11:01 +08:00
8ctopus 7188d3ef9f Doc added how to setup email (#8520) 2019-10-16 12:34:20 +01:00
8ctopusandJohn Olheiser e0113cb910 Doc recommend to use reverse proxy if Apache/nginx is also running on… (#8384)
* Doc recommend to use reverse proxy if Apache/nginx is also running on server

* Update docs/content/doc/usage/https-support.md

Co-Authored-By: John Olheiser <[email protected]>
2019-10-10 00:11:25 +01:00
8ctopus 1ceaa0a0af Doc added instructions for Git LFS support (#8391) 2019-10-06 12:38:09 +08:00
8ctopus cfff1afc51 Cleanup https support code snippet (#8370) 2019-10-04 08:54:05 +08:00
W Andersandguillep2k b993a75be9 Include git-hook regeneration in restore documentation (#8181)
* Added admin cmd ref to backup-restore guide

* Clarified reason for command execution

* Include directive for where command should be executed from

Co-Authored-By: guillep2k <[email protected]>

* Be direct in consequences

Co-Authored-By: guillep2k <[email protected]>
2019-09-15 10:37:09 +08:00
mrsdizzie 27ccb76378 Fix regression in reverse proxy documentation (#7634)
From Apache: AllowEncodedSlashes not allowed in <Proxy> context

Move this out of <Proxy> block

Fixes #7632
2019-07-26 18:09:12 -04:00
Gary Kim 52c3eaedb7 Specify using AllowEncodedSlashes and nocanon for httpd (#7540)
When using wiki page names that include a slash
behind a Apache HTTPD reverse proxy,
AllowEncodedSlashes NoDecode
and appending nocanon to the ProxyPass
directive is required. This commit adds that
information to the documentation.

Signed-off-by: Gary Kim <[email protected]>
2019-07-20 21:44:53 +03:00
ngourdonandngourdon e164486c9d Add CLI commands to manage LDAP authentication source (#6681)
* add CLI commands to manage LDAP authentication source

* delete Gogs copyright

* remove unused return value of func parseLoginSource

* fix comment

Co-Authored-By: ngourdon <[email protected]>

* remove config flag already present in global flags

* remove config flag from ldap commands in docs

* remove config flag handling
2019-06-17 14:32:20 -04:00
Lanre Adelowo 364ac6b337 add docs for #6847 (#7132) 2019-06-05 17:24:09 +01:00
zeripath 46c89db264 Add work path CLI option (#6922)
Makes it possible to set the work path as a CLI option instead of
relying on environment variables which are somewhat opaque
2019-05-14 11:20:35 -04:00
techknowlogick ada0d7dd5a Rename LFS_JWT_SECRET to include OAUTH2 as well (#6826) 2019-05-01 22:32:06 -04:00
John Olheiser 0e786302b2 Change verbose flag in dump command to avoid colliding with global version flag (#6822)
* Change verbose flag to avoid colliding with version flag
* Update docs

Signed-off-by: jolheiser <[email protected]>
2019-05-01 21:36:09 +01:00
zeripath fc33eabea7 Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631) 2019-04-29 14:08:21 -04:00
0x5c 55fe7bb682 [FIX] Docs: Backup&Restore: fixed rendering + minor fixes (#6569)
- Fixed a code block inverting the code blocks of the rest of the page
- Fixed various markdown syntax errors
- Fixed some spelling I could notice

Signed-off-by: 0x5c <[email protected]>
2019-04-10 09:34:44 -04:00
ngourdon 9d6de48e3e Add username flag in create-user command (#6534)
* Add username flag in create-user command

* Fix the error message

* Change name to username on flag of create-user command

* Include create-user flags of both versions

* delete deprecated example of create-user command
2019-04-09 11:21:55 -04:00
Alexandros Nicolaides 696f7ab755 Added docker example for backup (#5846)
* Added docker example for backup

* Fix using docker command example

* Clarify --tempdir as per @lafriks suggestion
2019-04-08 15:45:29 +03:00