mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
Updated Nginx (markdown)
parent
a8ec64d987
commit
ee2bbd3728
1 changed files with 2 additions and 2 deletions
4
Nginx.md
4
Nginx.md
|
|
@ -26,8 +26,6 @@ server {
|
||||||
access_log /var/log/nginx/btracker.access.log;
|
access_log /var/log/nginx/btracker.access.log;
|
||||||
|
|
||||||
location @proxy {
|
location @proxy {
|
||||||
expires 15m;
|
|
||||||
add_header Cache-Control "public, max-age=900";
|
|
||||||
proxy_pass http://127.0.0.1:8000;
|
proxy_pass http://127.0.0.1:8000;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
@ -40,6 +38,8 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
expires 15m;
|
||||||
|
add_header Cache-Control "public, max-age=900";
|
||||||
try_files $uri @proxy;
|
try_files $uri @proxy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue