mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
Updated Nginx (markdown)
parent
e370164867
commit
c65fe187aa
1 changed files with 23 additions and 0 deletions
23
Nginx.md
23
Nginx.md
|
|
@ -41,4 +41,27 @@ server {
|
|||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Restrict
|
||||
|
||||
> [!NOTE]
|
||||
> Direct access to the following files is safe and is also already restricted by the Rocket framework implementation (as unexpected by the application logic). Therefore, feel free to further restrict direct access on the Nginx side.
|
||||
|
||||
**Restrict direct access to the torrent files**
|
||||
|
||||
```
|
||||
location ~* \.torrent$ {
|
||||
deny all;
|
||||
}
|
||||
```
|
||||
|
||||
**Restrict direct access to hidden files (started with dot)**
|
||||
|
||||
Hidden files are temporarily created filesystem offsets by the `aquatic-crawler` and its `librqbit` client on the data preload. Permanent files are moved to folders without a dot. There is no reason to access this location.
|
||||
|
||||
```
|
||||
location ~* ^/\. {
|
||||
deny all;
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue