GQL config question #54

Open
opened 2024-08-20 13:33:44 +00:00 by zramsay · 3 comments
Member

Where can we find the config section for the GraphQL endpoint in the laconid container?

We would have to make a few cors adjustments. We actually expected to find them in /root/.laconicd/config/app.toml or /root/.laconicd/config/config.toml. Some qpl flags at the laconicd binary have already been found.

Or have the settings of the GraphQL endpoint perhaps been derived from another endpoint?

Change Request: Add a GraphQL endpoint section into config.toml or app.toml

Where can we find the config section for the GraphQL endpoint in the laconid container? We would have to make a few cors adjustments. We actually expected to find them in /root/.laconicd/config/app.toml or /root/.laconicd/config/config.toml. Some qpl flags at the laconicd binary have already been found. Or have the settings of the GraphQL endpoint perhaps been derived from another endpoint? Change Request: Add a GraphQL endpoint section into config.toml or app.toml
Member

We would have to make a few cors adjustments.

Which ones in particular?

> We would have to make a few cors adjustments. Which ones in particular?
Owner

I this works in my mainnet-laconic setup. I'll see where it gets configured.

I this works in my mainnet-laconic setup. I'll see where it gets configured.
Owner

Did some checking, and it appears in my deployments cors wildcard is enabled by default. I don't think we explicitly enable it:

$ curl -H "Origin: http://example.com" --verbose http://testnet-a-2.dev.vaasl.io:9473/api
*   Trying 204.130.133.218:9473...
* Connected to testnet-a-2.dev.vaasl.io (204.130.133.218) port 9473 (#0)
> GET /api HTTP/1.1
> Host: testnet-a-2.dev.vaasl.io:9473
> User-Agent: curl/7.81.0
> Accept: */*
> Origin: http://example.com
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 422 Unprocessable Entity
< Access-Control-Allow-Origin: *
< Content-Type: application/json
< Vary: Origin
< Date: Tue, 20 Aug 2024 17:42:23 GMT
< Content-Length: 110
Did some checking, and it appears in my deployments cors wildcard is enabled by default. I don't think we explicitly enable it: ``` $ curl -H "Origin: http://example.com" --verbose http://testnet-a-2.dev.vaasl.io:9473/api * Trying 204.130.133.218:9473... * Connected to testnet-a-2.dev.vaasl.io (204.130.133.218) port 9473 (#0) > GET /api HTTP/1.1 > Host: testnet-a-2.dev.vaasl.io:9473 > User-Agent: curl/7.81.0 > Accept: */* > Origin: http://example.com > * Mark bundle as not supporting multiuse < HTTP/1.1 422 Unprocessable Entity < Access-Control-Allow-Origin: * < Content-Type: application/json < Vary: Origin < Date: Tue, 20 Aug 2024 17:42:23 GMT < Content-Length: 110 ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd#54
No description provided.