1
0
Fork 0
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:
oufmilo 2022-12-22 21:47:27 +01:00 committed by GitHub
parent 9640519d49
commit c130a1d9a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}