jackyzy823 / fxa-selfhosting

Selfhosting your own Firefox Accounts (FxA)!
Mozilla Public License 2.0
94 stars 13 forks source link

Full self sign broken #18

Closed RedPine404 closed 8 months ago

RedPine404 commented 8 months ago

The workaround for fxa-graphql-api with full self sign is no longer working and results in the container continuously rebooting and this error:

sed: can't read /fxa/packages/fxa-auth-client/dist/server/packages/fxa-auth-client/lib/client.js: No such file or directory

RedPine404 commented 8 months ago

This seems to be working when I update the command for fxa-graphql-api with this:

  sed -i 's/30000;/30000;this.public_url = options.public_url || this.uri ;/' /fxa/packages/fxa-auth-client/dist/server/cjs/packages/fxa-auth-client/lib/client.js &&
  sed -i 's/hawk.header(method, this.url(path),/hawk.header(method, `$${this.public_url}$${path}`,/' /fxa/packages/fxa-auth-client/dist/server/cjs/packages/fxa-auth-client/lib/client.js &&
  sed -i 's/30000;/30000;this.public_url = options.public_url || this.uri ;/' /fxa/packages/fxa-auth-client/dist/server/esm/packages/fxa-auth-client/lib/client.js &&
  sed -i 's/hawk.header(method, this.url(path),/hawk.header(method, `$${this.public_url}$${path}`,/' /fxa/packages/fxa-auth-client/dist/server/esm/packages/fxa-auth-client/lib/client.js &&