debug: sv clean testing in cors polici maping because it is redundant and add Allow origin heade custom log
Some checks failed
Deploy on push / deploy (push) Failing after 7s
Some checks failed
Deploy on push / deploy (push) Failing after 7s
This commit is contained in:
parent
79e6402df3
commit
9bc3cdbd0b
|
@ -12,9 +12,7 @@ log_format custom '$remote_addr - $remote_user [$time_local] "$request" '
|
|||
map $http_origin $allow_origin {
|
||||
~^https?:\/\/(.*\.)?localhost(:\d+)?$ $http_origin;
|
||||
~^https?:\/\/(.*\.)?discours\.io$ $http_origin;
|
||||
~^https?:\/\/(.*\.)?dscrs\.site$ $http_origin;
|
||||
~^https?:\/\/testing\.discours\.io$ $http_origin;
|
||||
~^https?:\/\/testing\.dscrs\.site$ $http_origin;
|
||||
~^https?:\/\/(.*\.)?dscrs\.site(:\d+)?$ $http_origin;
|
||||
~^https?:\/\/discoursio-webapp(-.*)?\.vercel\.app$ $http_origin;
|
||||
default "";
|
||||
}
|
||||
|
@ -66,6 +64,8 @@ server {
|
|||
{{ $cors_headers_post }}
|
||||
{{ $cors_headers_get }}
|
||||
|
||||
add_header Debug-Allow-Origin $allow_origin;
|
||||
|
||||
proxy_cache my_cache;
|
||||
proxy_cache_revalidate on;
|
||||
proxy_cache_min_uses 2;
|
||||
|
|
Loading…
Reference in New Issue
Block a user