Skip to content

Commit 16cb5fc

Browse files
committed
use nginx syntax
1 parent f805c3b commit 16cb5fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/content/administration/reverse-proxies.en-us.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ If you want Nginx to serve your Gitea instance, add the following `server` secti
4343

4444
And make sure `client_max_body_size` is large enough, otherwise there would be "413 Request Entity Too Large" error when uploading large files.
4545

46-
```
46+
```nginx
4747
server {
4848
...
4949
location / {
@@ -63,7 +63,7 @@ server {
6363

6464
In case you already have a site, and you want Gitea to share the domain name, you can setup Nginx to serve Gitea under a sub-path by adding the following `server` section inside the `http` section of `nginx.conf`:
6565

66-
```
66+
```nginx
6767
server {
6868
...
6969
# Note: Trailing slash
@@ -105,7 +105,7 @@ or use a cdn for the static files.
105105

106106
Set `[server] STATIC_URL_PREFIX = /_/static` in your configuration.
107107

108-
```
108+
```nginx
109109
server {
110110
listen 80;
111111
server_name git.example.com;
@@ -124,7 +124,7 @@ server {
124124

125125
Set `[server] STATIC_URL_PREFIX = http://cdn.example.com/gitea` in your configuration.
126126

127-
```
127+
```nginx
128128
# application server running Gitea
129129
server {
130130
listen 80;
@@ -136,7 +136,7 @@ server {
136136
}
137137
```
138138

139-
```
139+
```nginx
140140
# static content delivery server
141141
server {
142142
listen 80;

0 commit comments

Comments
 (0)