[Docs] Clarify TLS Termination Proxy #4485

Closed
opened 2025-11-02 05:52:24 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @bagasme on GitHub (Dec 14, 2019).

Description

On HTTPS Setup, reverse proxy can be used for providing HTTPS instance. In reality, such setup is called TLS Termination Proxy.

Perhaps the docs can be rewritten as:

You can also enable HTTPS by using reverse proxy. Set up your favorite reverse proxy (Apache,
NGINX, or Caddy) and follow documentation of the program of your choice to enable HTTPS site.

NOTE: Enabling HTTPS by this method is referred as TLS Termination Proxy. The reverse proxy
handle TLS connections, and decrypted them for passing to Gitea. This is fine as long as the reverse
proxy and Gitea instance are either on the same machine, or on different machine on private
network (the proxy is exposed to outside network). If your Gitea instance is on public network, and
you want to enable HTTPS with reverse proxy, it is recommended to also encrypt connections from
your proxy to Gitea by follow instructions for built-in server and change proxy URL to https://[URL].
Originally created by @bagasme on GitHub (Dec 14, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> # Description On [HTTPS Setup](https://docs.gitea.io/en-us/https-setup/), reverse proxy can be used for providing HTTPS instance. In reality, such setup is called [TLS Termination Proxy](https://en.wikipedia.org/wiki/TLS_termination_proxy). Perhaps the docs can be rewritten as: ``` You can also enable HTTPS by using reverse proxy. Set up your favorite reverse proxy (Apache, NGINX, or Caddy) and follow documentation of the program of your choice to enable HTTPS site. NOTE: Enabling HTTPS by this method is referred as TLS Termination Proxy. The reverse proxy handle TLS connections, and decrypted them for passing to Gitea. This is fine as long as the reverse proxy and Gitea instance are either on the same machine, or on different machine on private network (the proxy is exposed to outside network). If your Gitea instance is on public network, and you want to enable HTTPS with reverse proxy, it is recommended to also encrypt connections from your proxy to Gitea by follow instructions for built-in server and change proxy URL to https://[URL]. ```
GiteaMirror added the type/docs label 2025-11-02 05:52:24 -06:00
Author
Owner

@lunny commented on GitHub (Dec 14, 2019):

Please send a PR to update that.

@lunny commented on GitHub (Dec 14, 2019): Please send a PR to update that.
Author
Owner

@bagasme commented on GitHub (Dec 15, 2019):

@lunny Sorry, I'm not trying to open a PR yet currently, just a suggestion.

Why? I only have metered internet connection (about 1 GB per day). Getting code.gitea.io sources via go get can easily exhaust internet quota quickly.

@bagasme commented on GitHub (Dec 15, 2019): @lunny Sorry, I'm not trying to open a PR yet currently, just a suggestion. Why? I only have metered internet connection (about 1 GB per day). Getting `code.gitea.io` sources via `go get` can easily exhaust internet quota quickly.
Author
Owner

@bagasme commented on GitHub (Dec 25, 2019):

I had opened PR @ #9491.

@bagasme commented on GitHub (Dec 25, 2019): I had opened PR @ #9491.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4485