From 87c8e0e473709b36ea81b5e17e5df197e2a8cf4a Mon Sep 17 00:00:00 2001 From: Marius Vigariu Date: Thu, 25 Jul 2024 11:55:22 +0300 Subject: [PATCH] remove microservices conf template --- .../proxy/microservices.conf.template | 65 ------------------- 1 file changed, 65 deletions(-) delete mode 100644 docker-compose/proxy/microservices.conf.template diff --git a/docker-compose/proxy/microservices.conf.template b/docker-compose/proxy/microservices.conf.template deleted file mode 100644 index fa0dce0db..000000000 --- a/docker-compose/proxy/microservices.conf.template +++ /dev/null @@ -1,65 +0,0 @@ -map $http_upgrade $connection_upgrade { - - default upgrade; - '' close; -} - -server { - listen 8080; - server_name evm-devnet.nexscan.io; - proxy_http_version 1.1; - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Methods; - add_header 'Access-Control-Allow-Origin' 'http://evm-devnet.nexscan.io:8080' always; - add_header 'Access-Control-Allow-Credentials' 'true' always; - add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; - - location / { - proxy_pass http://stats:8050/; - proxy_http_version 1.1; - proxy_set_header Host "$host"; - proxy_set_header X-Real-IP "$remote_addr"; - proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for"; - proxy_set_header X-Forwarded-Proto "$scheme"; - proxy_set_header Upgrade "$http_upgrade"; - proxy_set_header Connection $connection_upgrade; - proxy_cache_bypass $http_upgrade; - } -} -server { - listen 8081; - server_name evm-devnet.nexscan.io - proxy_http_version 1.1; - proxy_hide_header Access-Control-Allow-Origin; - proxy_hide_header Access-Control-Allow-Methods; - add_header 'Access-Control-Allow-Origin' 'http://evm-devnet.nexscan.io:8081' always; - add_header 'Access-Control-Allow-Credentials' 'true' always; - add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; - add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; - - location / { - proxy_pass http://visualizer:8050/; - proxy_http_version 1.1; - proxy_buffering off; - proxy_set_header Host "$host"; - proxy_set_header X-Real-IP "$remote_addr"; - proxy_connect_timeout 30m; - proxy_read_timeout 30m; - proxy_send_timeout 30m; - proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for"; - proxy_set_header X-Forwarded-Proto "$scheme"; - proxy_set_header Upgrade "$http_upgrade"; - proxy_set_header Connection $connection_upgrade; - proxy_cache_bypass $http_upgrade; - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' 'http://evm-devnet.nexscan.io:8081' always; - add_header 'Access-Control-Allow-Credentials' 'true' always; - add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; - add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; - add_header 'Access-Control-Max-Age' 1728000; - add_header 'Content-Type' 'text/plain charset=UTF-8'; - add_header 'Content-Length' 0; - return 204; - } - } -}