mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
5 years ago
|
---
|
||
|
date: "2019-12-28"
|
||
|
title: "Adding Legal Pages"
|
||
|
slug: adding-legal-pages
|
||
2 years ago
|
sidebar_position: 110
|
||
5 years ago
|
toc: false
|
||
|
draft: false
|
||
2 years ago
|
aliases:
|
||
|
- /en-us/adding-legal-pages
|
||
5 years ago
|
menu:
|
||
|
sidebar:
|
||
2 years ago
|
parent: "administration"
|
||
5 years ago
|
name: "Adding Legal Pages"
|
||
|
identifier: "adding-legal-pages"
|
||
2 years ago
|
sidebar_position: 110
|
||
5 years ago
|
---
|
||
|
|
||
|
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.
|
||
|
|
||
|
## Getting Pages
|
||
|
|
||
|
Gitea source code ships with sample pages, available in `contrib/legal` directory. Copy them to `custom/public/`. For example, to add Privacy Policy:
|
||
|
|
||
|
```
|
||
3 years ago
|
wget -O /path/to/custom/public/privacy.html https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/legal/privacy.html.sample
|
||
5 years ago
|
```
|
||
|
|
||
|
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.
|
||
|
|
||
3 years ago
|
You absolutely must not place a general ToS or privacy statement that implies that the Gitea project is responsible for your server.
|
||
5 years ago
|
|
||
|
## Make it Visible
|
||
|
|
||
|
Create or append to `/path/to/custom/templates/custom/extra_links_footer.tmpl`:
|
||
|
|
||
|
```go
|
||
4 years ago
|
<a class="item" href="{{AppSubUrl}}/assets/privacy.html">Privacy Policy</a>
|
||
5 years ago
|
```
|
||
|
|
||
|
Restart Gitea to see the changes.
|