From ba9e4e25705b04fbcd6ebe61c8dd0aa075dc3b0e Mon Sep 17 00:00:00 2001 From: "M. Zhou" Date: Tue, 11 Jan 2022 23:18:28 -0500 Subject: [PATCH] [doc] https-setup: explain relative paths for {CERT,KEY}_FILE fields. (#18244) Closes: https://github.com/go-gitea/gitea/issues/14401 --- docs/content/doc/usage/https-support.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/doc/usage/https-support.md b/docs/content/doc/usage/https-support.md index 7a8d93dc52..d7563a0f08 100644 --- a/docs/content/doc/usage/https-support.md +++ b/docs/content/doc/usage/https-support.md @@ -40,6 +40,8 @@ KEY_FILE = key.pem Note that if your certificate is signed by a third party certificate authority (i.e. not self-signed), then cert.pem should contain the certificate chain. The server certificate must be the first entry in cert.pem, followed by the intermediaries in order (if any). The root certificate does not have to be included because the connecting client must already have it in order to estalbish the trust relationship. To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server-server). +For the `CERT_FILE` or `KEY_FILE` field, the file path is relative to the `GITEA_CUSTOM` environment variable when it is a relative path. It can be an absolute path as well. + ### 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: