Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Commit b077702

Browse files
committed
Add GITEA_CUSTOM configuration in customization section
1 parent 7311829 commit b077702

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ menu:
1717

1818
The main way to customize Gitea is by using the `custom` folder. This is the central place to override and configure features.
1919

20+
Use `GITEA_CUSTOM` to define another folder instead. For example:
21+
22+
```
23+
GITEA_CUSTOM=/srv/gitea/mycustom ./gitea web
24+
```
25+
26+
**Note** that by default Gitea will use the `custom` folder in the current working directory.
27+
2028
## Customizing /robots.txt
2129

2230
To make Gitea serve your own `/robots.txt` (by default, an empty 404 status is served), simply create a file called `robots.txt` in the `custom` folder with the [expected contents](http://www.robotstxt.org/). **Note** that you have to restart Gitea for it to notice the new `robots.txt`.

0 commit comments

Comments
 (0)