Kaynağa Gözat

Revert "updated nginx conf examples for graphite CORS configuration"

This reverts commit 9edaa407f2444ab3bcadd1c53a8e4864bb6e97e1.
Andrew Rodgers 11 yıl önce
ebeveyn
işleme
f6ba577cf4
1 değiştirilmiş dosya ile 0 ekleme ve 2 silme
  1. 0 2
      README.md

+ 0 - 2
README.md

@@ -95,8 +95,6 @@ Header set Access-Control-Allow-Credentials true
 ```
 ```
 And in nginx:
 And in nginx:
 ```
 ```
-auth_basic            "Restricted";
-auth_basic_user_file  /path/to/my/htpasswd/file;
 if ($http_origin ~* (https?://[^/]*\.somedomain\.com(:[0-9]+)?)) {  #Test if request is from allowed domain, you can use multiple if
 if ($http_origin ~* (https?://[^/]*\.somedomain\.com(:[0-9]+)?)) {  #Test if request is from allowed domain, you can use multiple if
     set $cors "true";                                               #statements to allow multiple domains, simply setting $cors to true in each one.
     set $cors "true";                                               #statements to allow multiple domains, simply setting $cors to true in each one.
 }
 }