Skip to content
Snippets Groups Projects
Commit 37a3c2d4 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Added ngnix instance to supplement CORS headers during communication to

testnet node instance
parent 1f6bc534
No related branches found
No related tags found
1 merge request!2Fix building hive examples docker image by adding hive-subdir option
......@@ -13,7 +13,6 @@ services:
ports:
- "31234:1234"
- "3000:3000"
tty: true
stdin_open: true
......@@ -26,6 +25,27 @@ services:
retries: 10
start_period: 30s
depends_on:
workerbee-testnet-proxy:
condition: service_healthy
workerbee-testnet-proxy:
image: nginxinc/nginx-unprivileged:1.25
volumes:
- type: bind
source: ./proxy/nginx.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
ports:
- "3000:3000"
healthcheck:
test: "curl -f localhost:3000"
interval: 10s
timeout: 2s
retries: 10
start_period: 30s
depends_on:
workerbee-testnet:
condition: service_healthy
......
server {
listen 3000;
location / {
proxy_pass http://workerbee-testnet:2500;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Allow-Methods' 'GET,POST';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment