-
Notifications
You must be signed in to change notification settings - Fork 1
Miscellaneous
Evgeny edited this page Feb 5, 2024
·
10 revisions
Use this snippet if you decided to self-host a repository with a website and you wanna access repo.json only by hostname via DriveDroid app since it uses okhttp. Place the next lines in server section of your config.
location = / {
if ($http_user_agent ~* 'okhttp') {
rewrite ^/(.*)$ /repo.json break;
}
}