Giter Club home page Giter Club logo

Comments (3)

areknawo avatar areknawo commented on May 13, 2024 1

For now, all need to be accessible from the outside. To give you an overview:

  • PUBLIC_APP_URL is the main one (where you access the dashboard)
  • PUBLIC_API_URL is for API access (which is also sometimes used by the APP, but you'd likely want to be accessible outside anyway)
  • PUBLIC_COLLAB_URL is a dedicated WebSocket server to support collaboration, primarly in the editor. It applies even if you only use it for yourself, as it receives and saves edits in real time.
  • PUBLIC_ASSETS_URL serves uploaded assets, i.e. images. Recently, it also supports URL params for image optimization - format, w (width), h (height), and fit.

It's how it was originally structured, partially due to technical limitations and partially to better suit the Vrite Cloud setup. I'm not planning to change it right now, but I might try to optimize it for v1.

from vrite.

areknawo avatar areknawo commented on May 13, 2024

Do you have the following env vars set?

PUBLIC_COLLAB_URL=
PUBLIC_APP_URL=
PUBLIC_API_URL=
PUBLIC_ASSETS_URL=

They should reflect the URLs your services are accessible at, e.g. PUBLIC_APP_URL=http://10.10.10.10:7171

You can also try setting the following to explicitly specify the Domain attribute for auth cookies (which might be the source of the issue):

COOKIE_DOMAIN=10.10.10.10

from vrite.

ovizii avatar ovizii commented on May 13, 2024

Thanks, the tip with the cookie domain solved the problem.
I already had the URLs set in my .env file.

I have a related question about those URLs: if I put my vrite instance behind a reverse proxy, which of those URLs needs to be publicly accessible? Is it just PUBLIC_APP_URL? I assume the others only need to be accessible to each other and not from "outside"?

from vrite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.