liquidnft / lnft

Liquid NFT Platform
GNU Affero General Public License v3.0
56 stars 23 forks source link

Hasura GraphQL secret in .env causing issue #51

Closed ImTiaan closed 2 years ago

ImTiaan commented 2 years ago

I don't normally make these, so this might suck but I'll try be as descriptive as possible - maybe I'm missing something.

Running everything according to the steps in the README I get to the point of running this command docker-compose up -d

and get this error unexpected character "\"" in variable name near "\"HS256\", \"key\": \"25C134A00CF05C9BF583727A12778F52D0E7BD560D3A3ACF8E79127E9A56119D\"}\nSIGNING_SERVER_MNEMONIC=\"actor plate kit job awful guilt myself reunion praise twenty exact firm\"\n\n# optional settings for prod\nCLOUDFLARE_TOKEN=\nCLOUDFLARE_ZONE=\nDOMAIN=localhost\nCOINOS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJhcmV0b3NoaSIsImlhdCI6MTYzMDM1ODE2MX0._hCtzsXcagiWoUPa7m3Hn-HqRlXaMjI0xsIfppEn56U\nCOINOS_URL=http://app:3119\nSERVER_URL=\"http://localhost:3000\"\nSMTP_HOST=\"\"\nSMTP_PORT=587\nSMTP_USER=\"\"\nSMTP_PASS=\"\"\nSMTP_SENDER=\"\"\n"

so I updated the .env to this HASURA_GRAPHQL_JWT_SECRET="25C134A00CF05C9BF583727A12778F52D0E7BD560D3A3ACF8E79127E9A56119D"

And most of the docker instances run, but Hasura doesn't. On looking at the log i see this Fatal Error:- Environment variable HASURA_GRAPHQL_JWT_SECRET: Error in $: endOfInput

So it seems like it wants the object formatted both ways maybe?

But also I'm really not sure if I'm just missing a thing?

ImTiaan commented 2 years ago

Looks like the issue is caused by having docker compose V2 enabled.