mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
Update nginx.conf
This commit is contained in:
parent
9640519d49
commit
c130a1d9a1
1 changed files with 28 additions and 0 deletions
|
@ -23,3 +23,31 @@ location __PATH__/ {
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# rate limit the login or password reset pages
|
||||||
|
location ~ ^/(login[^-/]|password-reset|resend-link|2fa-check) {
|
||||||
|
limit_req zone=loginlimit;
|
||||||
|
proxy_pass http://127.0.0.1:__PORT__;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api/updates/ {
|
||||||
|
access_log off;
|
||||||
|
proxy_pass http://127.0.0.1:__PORT__;
|
||||||
|
}
|
||||||
|
|
||||||
|
# directly serve images and static files from the
|
||||||
|
# bookwyrm filesystem using sendfile.
|
||||||
|
# make the logs quieter by not reporting these requests
|
||||||
|
location ~ ^/(images|static)/ {
|
||||||
|
root /app;
|
||||||
|
try_files $uri =404;
|
||||||
|
add_header X-Cache-Status STATIC;
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
|
||||||
|
# monitor the celery queues with flower, no caching enabled
|
||||||
|
location /flower/ {
|
||||||
|
proxy_pass http://flower:8888;
|
||||||
|
proxy_cache_bypass 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue