Skip to content

Commit 4b1e3d8

Browse files
committed
[docs] add the STATIC_URL_PREFIX option
Signed-off-by: Jakob Ackermann <[email protected]>
1 parent fe285b6 commit 4b1e3d8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
116116
- `ROOT_URL`: **%(PROTOCOL)s://%(DOMAIN)s:%(HTTP\_PORT)s/**:
117117
Overwrite the automatically generated public URL.
118118
This is useful if the internal and the external URL don't match (e.g. in Docker).
119+
- `STATIC_URL_PREFIX`: **\<empty\>**:
120+
Overwrite this option to request static resources from a different URL.
121+
This includes CSS files, images, JS files and web fonts.
122+
Avatar images are dynamic resources and still served by gitea.
123+
The option can be just a different path, as in `/static`, or another domain, as in `https://cdn.example.com`.
124+
Requests are then made as `%(ROOT_URL)s/static/css/index.css` and `https://cdn.example.com/css/index.css` respective.
125+
The static files are located in the `public/` directory of the gitea source repository.
119126
- `HTTP_ADDR`: **0.0.0.0**: HTTP listen address.
120127
- If `PROTOCOL` is set to `fcgi`, Gitea will listen for FastCGI requests on TCP socket
121128
defined by `HTTP_ADDR` and `HTTP_PORT` configuration settings.
@@ -515,4 +522,4 @@ Two special environment variables are passed to the render command:
515522

516523
- `SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.
517524
- `SHOW_FOOTER_VERSION`: **true**: Show Gitea version information in the footer.
518-
- `SHOW_FOOTER_TEMPLATE_LOAD_TIME`: **true**: Show time of template execution in the footer.
525+
- `SHOW_FOOTER_TEMPLATE_LOAD_TIME`: **true**: Show time of template execution in the footer.

0 commit comments

Comments
 (0)