mirror of
https://github.com/YGGverse/mb.git
synced 2026-03-31 09:05:28 +00:00
remove cache example (cache statics only)
This commit is contained in:
parent
def8f72ece
commit
3b6879b52d
1 changed files with 8 additions and 2 deletions
10
README.md
10
README.md
|
|
@ -49,9 +49,15 @@ WantedBy=multi-user.target
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
location ~* \.(jpg|jpeg|png|gif|ico|svg|css|js) {
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, max-age=2592000";
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
# 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue