diff options
author | 0x5c <0x5c.dev@gmail.com> | 2019-01-03 10:46:07 -0500 |
---|---|---|
committer | Jonas Franz <info@jonasfranz.software> | 2019-01-03 16:46:07 +0100 |
commit | 0de57fd57ca1a268e084d322c3e0f2d054b931e2 (patch) | |
tree | 0c317dc59a1e804511cf32b4ba4f5cfe2e475e4b /docs/content/doc/usage | |
parent | 9863591dcaa9dff2b4f1c83c058e40be31e39488 (diff) | |
download | gitea-0de57fd57ca1a268e084d322c3e0f2d054b931e2.tar.gz gitea-0de57fd57ca1a268e084d322c3e0f2d054b931e2.zip |
Documentation: Clarity for HTTPS setups (#5626)v1.7.0-dev
[https-setup]
- Made it clearer that HTTP redirection is possible
[config-cheat-sheet]
- Clarified the behavihour of the redirection-related config keys
Diffstat (limited to 'docs/content/doc/usage')
-rw-r--r-- | docs/content/doc/usage/https-support.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/content/doc/usage/https-support.md b/docs/content/doc/usage/https-support.md index 2e6bfdbcf1..e2af38113b 100644 --- a/docs/content/doc/usage/https-support.md +++ b/docs/content/doc/usage/https-support.md @@ -30,8 +30,22 @@ HTTP_PORT = 3000 CERT_FILE = cert.pem KEY_FILE = key.pem ``` + To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server). +### Setting-up HTTP redirection + +The Gitea server is only able to listen to one port; to redirect HTTP requests to the HTTPS port, you will need to enable the HTTP redirection service: + +```ini +[server] +REDIRECT_OTHER_PORT = true +; Port the redirection service should listen on +PORT_TO_REDIRECT = 3080 +``` + +If you are using Docker, make sure that this port is configured in your `docker-compose.yml` file. + ## Using Let's Encrypt [Let's Encrypt](https://letsencrypt.org/) is a Certificate Authority that allows you to automatically request and renew SSL/TLS certificates. In addition to starting Gitea on your configured port, to request HTTPS certificates Gitea will also need to listed on port 80, and will set up an autoredirect to HTTPS for you. Let's Encrypt will need to be able to access Gitea via the Internet to verify your ownership of the domain. |