mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-28 13:46:03 +08:00
26 lines
663 B
Text
Vendored
26 lines
663 B
Text
Vendored
fastcgi.server = (
|
|
"/weblate.fcgi" => (
|
|
"main" => (
|
|
"socket" => "/var/run/django/weblate.socket",
|
|
"check-local" => "disable",
|
|
)
|
|
),
|
|
)
|
|
alias.url = (
|
|
"/static" => "/usr/share/weblate/data/static/",
|
|
"/media" => "/usr/share/weblate/data/media/",
|
|
)
|
|
|
|
url.rewrite-once = (
|
|
"^(/*static.*)$" => "$1",
|
|
"^(/*media.*)$" => "$1",
|
|
"^/*favicon\.ico$" => "/static/favicon.ico",
|
|
"^/*robots\.txt$" => "/static/robots.txt",
|
|
"^(/.*)$" => "/weblate.fcgi$1",
|
|
)
|
|
|
|
expire.url = (
|
|
"/static/" => "access 1 months",
|
|
"/media/" => "access 1 months",
|
|
"/favicon.ico" => "access 1 months",
|
|
)
|