kopia lustrzana https://github.com/alecmuffett/eotk
Merge pull request #85 from alecmuffett/20201207-kludge-disable-sri
Build kludge_disable_sri for testingpull/87/head
commit
5ba4190a24
|
@ -593,6 +593,7 @@ my @set_blank = qw(
|
|||
host_whitelist_re
|
||||
inject_origin
|
||||
inject_referer
|
||||
kludge_disable_sri
|
||||
log_separate
|
||||
nginx_modules_dirs
|
||||
no_cache_content_type
|
||||
|
|
|
@ -55,6 +55,7 @@ my %known =
|
|||
'INJECT_ORIGIN' => 1,
|
||||
'INJECT_REFERER' => 1,
|
||||
'IS_SOFTMAP' => 1,
|
||||
'KLUDGE_DISABLE_SRI' => 1,
|
||||
'LEFT_TLD_RE' => 1,
|
||||
'LOG_DIR' => 1, # where logs for the current project live
|
||||
'LOG_SEPARATE' => 1,
|
||||
|
|
|
@ -221,6 +221,17 @@ http {
|
|||
# no preserve subs (restore-phase)
|
||||
%%ENDIF
|
||||
|
||||
%%IF %KLUDGE_DISABLE_SRI%
|
||||
# disabling sri with a kludge
|
||||
subs_filter
|
||||
"i(ntegrity=\"?sha(?:256|384|512)-)"
|
||||
"_$1"
|
||||
gir
|
||||
;
|
||||
%%ELSE
|
||||
# not disabling sri with a kludge
|
||||
%%ENDIF
|
||||
|
||||
# o2d_re_helper -> if cannot remap, return input. NB: old versions
|
||||
# of lua-plugin cannot cope with code like o2d_mappings[o[1]]
|
||||
# because of `long bracket syntax`; the `[o[` freaks it out.
|
||||
|
|
Ładowanie…
Reference in New Issue