mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-30 00:06:54 +01:00
chore(docs): change indentation in nginx config example
This commit is contained in:
parent
8fdeeaaf38
commit
3020e8104e
43
readme.md
43
readme.md
@ -92,34 +92,33 @@ Toggle websockets support.
|
|||||||
Add this to the site config file on your nginx server after you have changed the relevant parts in the <> brackets, and inserted your certificate paths.
|
Add this to the site config file on your nginx server after you have changed the relevant parts in the <> brackets, and inserted your certificate paths.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
server
|
server {
|
||||||
{
|
listen 443 ssl;
|
||||||
listen 443 ssl;
|
server_name <sub>.<domain>.<tld>;
|
||||||
server_name <sub>.<domain>.<tld>;
|
|
||||||
|
|
||||||
access_log /var/log/nginx/audiobookshelf.access.log;
|
access_log /var/log/nginx/audiobookshelf.access.log;
|
||||||
error_log /var/log/nginx/audiobookshelf.error.log;
|
error_log /var/log/nginx/audiobookshelf.error.log;
|
||||||
|
|
||||||
ssl_certificate /path/to/certificate;
|
ssl_certificate /path/to/certificate;
|
||||||
ssl_certificate_key /path/to/key;
|
ssl_certificate_key /path/to/key;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
proxy_pass http://<URL_to_forward_to>;
|
proxy_pass http://<URL_to_forward_to>;
|
||||||
proxy_redirect http:// https://;
|
proxy_redirect http:// https://;
|
||||||
|
|
||||||
# Prevent 413 Request Entity Too Large error
|
# Prevent 413 Request Entity Too Large error
|
||||||
# by increasing the maximum allowed size of the client request body
|
# by increasing the maximum allowed size of the client request body
|
||||||
# For example, set it to 10 GiB
|
# For example, set it to 10 GiB
|
||||||
client_max_body_size 10240M;
|
client_max_body_size 10240M;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user