flask和nginx的HTTP Baisc Auth的设置

Flask的设置看:

https://gist.github.com/codeif/d617eab1c15c5f8f063a434b100aa0d2

nginx的看:

location / {
    try_files $uri @demo;
    auth_basic "Restricted Content";
    auth_basic_user_file /etc/nginx/.htpasswd;
}

你可能感兴趣的:(flask和nginx的HTTP Baisc Auth的设置)