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