indent fixed
This commit is contained in:
parent
9aa2193149
commit
937f6e2ff8
25
README.md
25
README.md
@ -13,27 +13,26 @@ Specify a your personal auth token in your mpv.conf then;
|
||||
|
||||
```json
|
||||
map $http_useragent $auth {
|
||||
default 0;
|
||||
"your custom user agent (for example a 128 char string or more or less)" 1;
|
||||
default 0;
|
||||
"your custom user agent (for example a 128 char string or more or less)" 1;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
`sudo vim your-vhost-config.conf`
|
||||
|
||||
```json
|
||||
location /private-location/ {
|
||||
if ($auth = 0) {
|
||||
## UNAUTHORIZED
|
||||
# for example return to a location or 403
|
||||
#return 302 /dl/;
|
||||
return 403;
|
||||
}
|
||||
if ($auth = 0) {
|
||||
## UNAUTHORIZED
|
||||
# for example return to a location or 403
|
||||
#return 302 /dl/;
|
||||
return 403;
|
||||
}
|
||||
|
||||
## AUTHORIZED
|
||||
# for example publish your file server or return
|
||||
#proxy_pass http://backend/;
|
||||
return 200;
|
||||
## AUTHORIZED
|
||||
# for example publish your file server or return
|
||||
#proxy_pass http://backend/;
|
||||
return 200;
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user