mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 09:05:30 +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;
|
||||
|
||||
location @proxy {
|
||||
expires 15m;
|
||||
add_header Cache-Control "public, max-age=900";
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
|
@ -40,6 +38,8 @@ server {
|
|||
}
|
||||
|
||||
location / {
|
||||
expires 15m;
|
||||
add_header Cache-Control "public, max-age=900";
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue