Self-hosting Quadratic

Hello! We are close to launching Self-Hosting with Quadratic via Docker Compose!

If you would like to be an early tester, please reply to this thread or send us your information on our Contact Page.

This thread also acts as a community support page.

1 Like

@davidkircos i’ve been trying to setup quadratic locally for making contributions. i followed the readme and everything went fine until i got the error from auth0. so as suggested in readme, i used my own auth0 account, changed the env vars, configured the urls, etc. but than it keeps redirecting or refreshing. am i doing something wrong or is everybody is facing this same problem

Hey,

You should be able to get it working with your own env vars. You have to make sure the client, API, and multiplayer, and files services all have the correct Auth Vars. We are working on automating this part of the setup, and we actually remove the Auth0 dependency completely in this PR.

Let me know what happens once setting all the env vars. Can you be more specific if you have an issue going forward?

so i tried again. this is from the auth0 logs. i created the regular web application and changed the auth0 specific vars in env files in different workspaces. i visited localhost where it shows the auth0 login screen and used the same account which is used for creating the regular web application. it goes into endless loop where i get this in the terminal.

[API] UnauthorizedError: No authorization token was found
    at new UnauthorizedError (/Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-jwt/dist/errors/UnauthorizedError.js:22:28)
    at /Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-jwt/dist/index.js:114:39
    at step (/Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-jwt/dist/index.js:33:23)
    at Object.next (/Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-jwt/dist/index.js:14:53)
    at /Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-jwt/dist/index.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-jwt/dist/index.js:4:12)
    at middleware (/Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-jwt/dist/index.js:67:16)
    at newFn (/Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/Users/adityasharma/Desktop/Files/Personal/tinkering/OSS/quadratic/node_modules/express/lib/router/layer.js:95:5) {
  code: 'credentials_required',
  status: 401,
  inner: { message: 'No authorization token was found' }
}

React 👀     API ✓     Core ✓     Multiplayer ✓     Files ✓     Connection ✓     Types ✓     RustClient ✓     Python ◓  

i can provide more details to get help

Hi Aditya,

We recommend using the default auth provider (ory). Would recommend a fresh download and use the default auth provided. Alternative providers have not been tested and are not supported by us in self-hosted environments.