1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00
weblate_ynh/conf/nginx.conf

39 lines
902 B
Nginx Configuration File
Raw Normal View History

2019-08-28 08:30:33 +02:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
2020-10-28 12:02:15 +01:00
# https://github.com/WeblateOrg/weblate/blob/master/weblate/examples/weblate.nginx.conf
2019-08-30 22:20:01 +02:00
location = __PATH__/favicon.ico {
2022-03-04 08:23:50 +01:00
# DATA_DIR/static/favicon.ico
alias __FINALPATH__/data/static/favicon.ico;
expires 30d;
}
2019-08-30 22:20:01 +02:00
location = __PATH__/robots.txt {
2022-03-04 08:23:50 +01:00
# DATA_DIR/static/robots.txt
alias __FINALPATH__/data/static/robots.txt;
expires 30d;
}
2018-01-19 08:08:46 +01:00
location __PATH__/static/ {
2022-03-04 08:23:50 +01:00
# DATA_DIR/static/
alias __FINALPATH__/data/static/;
expires 30d;
}
2018-01-19 08:08:46 +01:00
location __PATH__/media/ {
2022-03-04 08:23:50 +01:00
# DATA_DIR/media/
alias __FINALPATH__/data/media/;
expires 30d;
}
2019-08-28 08:30:33 +02:00
location __PATH__/ {
2022-03-04 08:23:50 +01:00
# Path to source
alias __FINALPATH__/ ;
2022-03-04 08:23:50 +01:00
include uwsgi_params;
# Needed for long running operations in admin interface
uwsgi_read_timeout 3600;
uwsgi_pass unix:///var/run/__NAME__/socket;
2022-03-04 08:23:50 +01:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2019-08-28 08:30:33 +02:00
}