From 030eaaf8999753b633bbf21440e79fd22bd216ba Mon Sep 17 00:00:00 2001 From: STAM Date: Mon, 30 May 2022 17:50:28 +0300 Subject: [PATCH] Update README.md --- linux/ecosystem/qbittorrent/README.md | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/linux/ecosystem/qbittorrent/README.md b/linux/ecosystem/qbittorrent/README.md index 5122c469f..2e7cd4855 100644 --- a/linux/ecosystem/qbittorrent/README.md +++ b/linux/ecosystem/qbittorrent/README.md @@ -48,3 +48,33 @@ services: tmpfs: - /tmp ``` + + +### Ngnix + +``` +server { + + listen 443 ssl http2; + + server_name torrent.domain.tld; + + ssl_certificate /etc/ssl/torrent.domain.tld.fullchain.crt; + ssl_certificate_key /etc/ssl/torrent.domain.tld.key; + + location / { + + proxy_pass http://qbittorrent:8282; + proxy_http_version 1.1; + + proxy_set_header Host 127.0.0.1:8282; + proxy_set_header X-Forwarded-Host $http_host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_cookie_path / "/; Secure"; + + client_max_body_size 0; + + } +} + +```