@@ -116,6 +116,13 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
116
116
- ` ROOT_URL ` : ** %(PROTOCOL)s://%(DOMAIN)s:%(HTTP\_ PORT)s/** :
117
117
Overwrite the automatically generated public URL.
118
118
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.
119
126
- ` HTTP_ADDR ` : ** 0.0.0.0** : HTTP listen address.
120
127
- If ` PROTOCOL ` is set to ` fcgi ` , Gitea will listen for FastCGI requests on TCP socket
121
128
defined by ` HTTP_ADDR ` and ` HTTP_PORT ` configuration settings.
@@ -515,4 +522,4 @@ Two special environment variables are passed to the render command:
515
522
516
523
- ` SHOW_FOOTER_BRANDING ` : ** false** : Show Gitea branding in the footer.
517
524
- ` 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