Skip to content
Snippets Groups Projects
Commit af453e6c authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

tweak rpc config

parent fd9f6806
No related branches found
No related tags found
No related merge requests found
...@@ -26,20 +26,16 @@ server { ...@@ -26,20 +26,16 @@ server {
location / { location / {
return 400; return 400;
} }
location /api/v0/file/ { location /api/v0/add {
proxy_pass http://localhost:RPC_KUBO_PORT; proxy_pass http://localhost:RPC_KUBO_PORT/api/v0/add/;
proxy_set_header Host $host;
} }
location /api/v0/dag/ { location /api/v0/dag/ {
proxy_pass http://localhost:RPC_KUBO_PORT; proxy_pass http://localhost:RPC_KUBO_PORT;
proxy_set_header Host $host;
} }
location /api/v0/block/ { location /api/v0/block/ {
proxy_pass http://localhost:RPC_KUBO_PORT; proxy_pass http://localhost:RPC_KUBO_PORT;
proxy_set_header Host $host;
} }
location /api/v0/pubsub/ { location /api/v0/pubsub/ {
proxy_pass http://localhost:RPC_KUBO_PORT; proxy_pass http://localhost:RPC_KUBO_PORT;
proxy_set_header Host $host;
} }
} }
...@@ -4,4 +4,4 @@ COPY ./scripts/configure-addresses.sh /container-init.d/001-configure.sh ...@@ -4,4 +4,4 @@ COPY ./scripts/configure-addresses.sh /container-init.d/001-configure.sh
COPY ./scripts/configure-bootstrap.sh /container-init.d/002-configure.sh COPY ./scripts/configure-bootstrap.sh /container-init.d/002-configure.sh
COPY ./scripts/configure-peering.sh /container-init.d/003-configure.sh COPY ./scripts/configure-peering.sh /container-init.d/003-configure.sh
COPY ./scripts/configure-rpc-public.sh /container-init.d/004-configure.sh COPY ./scripts/configure-rpc-public.sh /container-init.d/004-configure.sh
CMD ["daemon"] CMD ["daemon", "--enable-pubsub-experiment"]
\ No newline at end of file \ No newline at end of file
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
set -ex set -ex
# --- rpc --- # --- rpc ---
ipfs config API.HTTPHeaders.Access-Control-Allow-Origin --json '["http://127.0.0.1:5001","http://127.0.0.1:6001","http://127.0.0.1:6002"]' ipfs config API.HTTPHeaders.Access-Control-Allow-Origin --json '["*"]'
ipfs config API.HTTPHeaders.Access-Control-Allow-Methods --json '["PUT", "POST"]' ipfs config API.HTTPHeaders.Access-Control-Allow-Methods --json '["PUT", "POST"]'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment