History

[doc] https-setup: explain relative paths for {CERT,KEY}_FILE fields. (#18244)

M. Zhou committed 4 years ago

Commit ba9e4e21 parent ee8718e1 file · +2 −0Browse files

Showing the changes to docs/content/doc/usage/https-support.md (1 of 1 file). Show all

Unified · Split

docs/content/doc/usage/https-support.md+2−0
@@ -40,6 +40,8 @@ KEY_FILE = key.pem · 39 unmodified lines
40Note 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.40Note 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.
41To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server-server).41To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server-server).
42 42
43For 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.
44
43### Setting up HTTP redirection45### Setting up HTTP redirection
44 46
45The 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:47The 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:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t