feat: add EdgeOne X-Origin-Token validation
This commit is contained in:
1 parent
8edc218dbf
commit
adcdf6e8c8
7 files changed
+27
-10
No files matched your search
@@ -0,0 +1,23 @@
|
||||
map_hash_bucket_size 128;
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
geo $is_internal {
|
||||
default 0;
|
||||
172.30.0.1 1;
|
||||
192.168.10.0/24 1;
|
||||
}
|
||||
|
||||
map $http_x_origin_token $valid_origin_token {
|
||||
default 0;
|
||||
${EO_ORIGIN_TOKEN} 1;
|
||||
}
|
||||
|
||||
map $is_internal$valid_origin_token $allow_access {
|
||||
default 0;
|
||||
10 1;
|
||||
01 1;
|
||||
}
|
||||
Reference in new issue
Block a user