debug: ok, moved map on tgop layaer of nginx. now this version without map
All checks were successful
Deploy on push / deploy (push) Successful in 57s
All checks were successful
Deploy on push / deploy (push) Successful in 57s
This commit is contained in:
parent
46945197d9
commit
670a477f9a
|
@ -5,14 +5,6 @@ log_format custom '$remote_addr - $remote_user [$time_local] "$request" '
|
|||
{{ $proxy_settings := "proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_set_header Host $http_host; proxy_set_header X-Request-Start $msec;" }}
|
||||
{{ $gzip_settings := "gzip on; gzip_min_length 1100; gzip_buffers 4 32k; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_vary on; gzip_comp_level 6;" }}
|
||||
|
||||
map $http_origin $allow_origin {
|
||||
~^https?:\/\/testing\.dscrs\.site$ $http_origin;
|
||||
~^https?:\/\/(.*\.)?localhost(:\d+)?$ $http_origin;
|
||||
~^https?:\/\/(.*\.)?discours\.io$ $http_origin;
|
||||
~^https?:\/\/discoursio-webapp(-.*)?\.vercel\.app$ $http_origin;
|
||||
default "non";
|
||||
}
|
||||
|
||||
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m max_size=1g
|
||||
inactive=60m use_temp_path=off;
|
||||
limit_conn_zone $binary_remote_addr zone=addr:10m;
|
||||
|
|
Loading…
Reference in New Issue
Block a user