Setting up a reverse proxy serving Gitea with Gin
Posted: | Tags: gin, reverse proxy, web
A reverse proxy receives requests and redirect them to the right host. It is very useful when you have only one server but need to serve several websites with domain names (or sub-domains).
In my case, I want to serve two sub-domains:
fadila.khadar.dev
, this static website.gitea.khadar.dev
, a self-hosted all-in-one software development service.
So the idea is to have a docker container running for each site to be served, and another one that will act as reverse proxy. I use docker compose for this, but I won’t cover this here.
Read more...