mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
37 lines
No EOL
817 B
Nginx Configuration File
37 lines
No EOL
817 B
Nginx Configuration File
# https://github.com/WeblateOrg/weblate/blob/master/examples/weblate.nginx.conf
|
|
location ^__PATH__/favicon.ico$ {
|
|
# DATA_DIR/static/favicon.ico
|
|
alias __FINALPATH__/data/static/favicon.ico;
|
|
expires 30d;
|
|
}
|
|
|
|
location ^__PATH__/robots.txt$ {
|
|
# DATA_DIR/static/robots.txt
|
|
alias __FINALPATH__/data/static/robots.txt;
|
|
expires 30d;
|
|
}
|
|
|
|
location __PATH__/static/ {
|
|
# DATA_DIR/static/
|
|
alias __FINALPATH__/data/static/;
|
|
expires 30d;
|
|
}
|
|
|
|
location __PATH__/media/ {
|
|
# DATA_DIR/media/
|
|
alias __FINALPATH__/data/media/;
|
|
expires 30d;
|
|
}
|
|
|
|
location __PATH__ {
|
|
# Path to source
|
|
alias __FINALPATH__/ ;
|
|
|
|
include uwsgi_params;
|
|
# Needed for long running operations in admin interface
|
|
uwsgi_read_timeout 3600;
|
|
uwsgi_pass unix:///var/run/__NAME__/socket;
|
|
|
|
# Include SSOWAT user panel.
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
} |