fix: Fix Nginx vhost example

This commit is contained in:
gd 2022-01-05 13:22:13 +03:00
parent dd570f7f93
commit 2f7fc76573
1 changed files with 5 additions and 1 deletions

View File

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