From 2f7fc765739c6c66734cd0dfd2bdf0b5770c9d0a Mon Sep 17 00:00:00 2001 From: gd Date: Wed, 5 Jan 2022 13:22:13 +0300 Subject: [PATCH] fix: Fix Nginx vhost example --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 81a9d14..68dcfcc 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,18 @@ imgs will launched on `127.0.0.1:5000`. Set up reverse proxy server. I recommed server { listen 80; server_name yourdomain.tld; + root /path/to/imgs/root; location / { - root /path/to/imgs/root; auth_basic "Authentication required"; auth_basic_user_file /path/to/.htpasswd; proxy_pass http://127.0.0.1:5000; } + location ~* ^/favicon.ico$ { + try_files $uri $uri/ =404; + } + location ~* \..* { auth_basic off; proxy_pass http://127.0.0.1:5000;