Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.24.7, which is no longer the latest release. See the latest release.

Adding Legal Pages

Some jurisdictions (such as EU), requires certain legal pages (e.g. Privacy Policy) to be added to website. Follow these steps to add them to your Gitea instance.

Gitea source code ships with sample pages, available in contrib/legal directory. Copy them to custom/public/assets/. For example, to add Privacy Policy:

Terminal window
wget -O /path/to/custom/public/assets/privacy.html https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/legal/privacy.html.sample

Now you need to edit the page to meet your requirements. In particular you must change the email addresses, web addresses and references to “Your Gitea Instance” to match your situation.

You absolutely must not place a general ToS or privacy statement that implies that the Gitea project is responsible for your server.

Create or append to /path/to/custom/templates/custom/extra_links_footer.tmpl:

<a class="item" href="{{AppSubUrl}}/assets/privacy.html">Privacy Policy</a>

Restart Gitea to see the changes.