mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-19 04:42:27 +08:00
Update eiblog.conf
This commit is contained in:
@@ -65,28 +65,6 @@ server {
|
|||||||
expires 1d;
|
expires 1d;
|
||||||
}
|
}
|
||||||
|
|
||||||
# imququ 的上传文件相关,未用到
|
|
||||||
location ^~ /static/uploads/ {
|
|
||||||
root /home/jerry/www/imququ.com/www;
|
|
||||||
add_header Access-Control-Allow-Origin *;
|
|
||||||
|
|
||||||
set $expires_time max;
|
|
||||||
|
|
||||||
valid_referers blocked none server_names *.qgy18.com *.inoreader.com feedly.com *.feedly.com www.udpwork.com theoldreader.com digg.com *.feiworks.com *.newszeit.com r.mail.qq.com yuedu.163.com *.w3ctech.com;
|
|
||||||
if ($invalid_referer) {
|
|
||||||
set $expires_time -1;
|
|
||||||
return 403;
|
|
||||||
}
|
|
||||||
|
|
||||||
expires $expires_time;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ^~ /static/ {
|
|
||||||
root /data/eiblog;
|
|
||||||
add_header Access-Control-Allow-Origin *;
|
|
||||||
expires max;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ^~ /admin/ {
|
location ^~ /admin/ {
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user