You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To change the access URL of the Quivr app from http://localhost:3000/login to http://local.example.com:3000/login, you need to modify the NEXT_PUBLIC_FRONTEND_URL environment variable in your configuration file. Here's how you can do it:
This change will instruct the Quivr frontend to use http://local.example.com:3000 as its base URL instead of http://localhost:3000. After making this change, remember to restart your Quivr application for the changes to take effect.
The NEXT_PUBLIC_FRONTEND_URL environment variable is used within the Quivr codebase in the ContentSecurityPolicy object for the following directives:
default-src
media-src
script-src
style-src
These directives are part of the Content Security Policy (CSP) settings, which help in preventing various types of attacks, including Cross-Site Scripting (XSS) and data injection attacks. The variable is used to specify the allowed sources for loading resources such as scripts, styles, and media from the frontend URL. You can find more details in the frontend/next.config.js file.
As for other places in the codebase where the NEXT_PUBLIC_FRONTEND_URL environment variable is used, apart from the ContentSecurityPolicy object, I wasn't able to find any within the repository. However, it's possible that there may be other uses that I might have missed. If you encounter any issues or need further assistance, please provide more details so I can assist you better.
The Feature
How to change the access URL of the app from http://localhost:3000/login to http://local.example.com:3000/login.
Motivation, pitch
http://local.example.com Setting up a proxy is more convenient.
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: