forked from svrjs/svrjs
Add default file formats not compressed list to SVR.JS itself. Also compressed audio/video file formats to one regular expression
This commit is contained in:
parent
b027443c47
commit
b236064a9b
3 changed files with 4 additions and 18 deletions
|
@ -46,14 +46,7 @@
|
|||
"/.*\\.png$/",
|
||||
"/.*\\.jpg$/",
|
||||
"/.*\\.webp$/",
|
||||
"/.*\\.mp3$/",
|
||||
"/.*\\.mp4$/",
|
||||
"/.*\\.mov$/",
|
||||
"/.*\\.avi$/",
|
||||
"/.*\\.webp$/",
|
||||
"/.*\\.webm$/",
|
||||
"/.*\\.ogg$/",
|
||||
"/.*\\.ogv$/"
|
||||
"/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/",
|
||||
],
|
||||
"enableIPSpoofing": false,
|
||||
"secure": false,
|
||||
|
|
|
@ -71,14 +71,7 @@
|
|||
"/.*\\.png$/",
|
||||
"/.*\\.jpg$/",
|
||||
"/.*\\.webp$/",
|
||||
"/.*\\.mp3$/",
|
||||
"/.*\\.mp4$/",
|
||||
"/.*\\.mov$/",
|
||||
"/.*\\.avi$/",
|
||||
"/.*\\.webp$/",
|
||||
"/.*\\.webm$/",
|
||||
"/.*\\.ogg$/",
|
||||
"/.*\\.ogv$/"
|
||||
"/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/",
|
||||
],
|
||||
"enableIPSpoofing": false,
|
||||
"secure": false,
|
||||
|
|
4
svr.js
4
svr.js
|
@ -1162,7 +1162,7 @@ var stackHidden = false;
|
|||
var exposeServerVersion = true;
|
||||
var rewriteMap = [];
|
||||
var allowStatus = true;
|
||||
var dontCompress = [];
|
||||
var dontCompress = ["/.*\\.ipxe$/", "/.*\\.flp$/", "/.*\\.img$/", "/.*\\.iso$/", "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", "/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/"];
|
||||
var enableIPSpoofing = false;
|
||||
var sni = {};
|
||||
var disableNonEncryptedServer = false;
|
||||
|
@ -5628,7 +5628,7 @@ function saveConfig() {
|
|||
if (configJSONobj.disableServerSideScriptExpose === undefined) configJSONobj.disableServerSideScriptExpose = true;
|
||||
if (configJSONobj.allowStatus === undefined) configJSONobj.allowStatus = true;
|
||||
if (configJSONobj.rewriteMap === undefined) configJSONobj.rewriteMap = [];
|
||||
if (configJSONobj.dontCompress === undefined) configJSONobj.dontCompress = [];
|
||||
if (configJSONobj.dontCompress === undefined) configJSONobj.dontCompress = ["/.*\\.ipxe$/", "/.*\\.flp$/", "/.*\\.img$/", "/.*\\.iso$/", "/.*\\.png$/", "/.*\\.jpg$/", "/.*\\.webp$/", "/.*\\.(?:mp[34]|avi|webm|og[gv]|mk[va])$/"];
|
||||
if (configJSONobj.enableIPSpoofing === undefined) configJSONobj.enableIPSpoofing = false;
|
||||
if (configJSONobj.secure === undefined) configJSONobj.secure = false;
|
||||
if (configJSONobj.disableNonEncryptedServer === undefined) configJSONobj.disableNonEncryptedServer = false;
|
||||
|
|
Reference in a new issue