indent fixed

This commit is contained in:
x 2024-06-23 20:08:44 +02:00
parent 9aa2193149
commit 937f6e2ff8

View File

@ -13,27 +13,26 @@ Specify a your personal auth token in your mpv.conf then;
```json ```json
map $http_useragent $auth { map $http_useragent $auth {
default 0; default 0;
"your custom user agent (for example a 128 char string or more or less)" 1; "your custom user agent (for example a 128 char string or more or less)" 1;
} }
``` ```
`sudo vim your-vhost-config.conf` `sudo vim your-vhost-config.conf`
```json ```json
location /private-location/ { location /private-location/ {
if ($auth = 0) { if ($auth = 0) {
## UNAUTHORIZED ## UNAUTHORIZED
# for example return to a location or 403 # for example return to a location or 403
#return 302 /dl/; #return 302 /dl/;
return 403; return 403;
} }
## AUTHORIZED ## AUTHORIZED
# for example publish your file server or return # for example publish your file server or return
#proxy_pass http://backend/; #proxy_pass http://backend/;
return 200; return 200;
} }
``` ```