Giter Club home page Giter Club logo

Comments (4)

mtthidoteu avatar mtthidoteu commented on September 20, 2024

There is nothing that would prevent Wizarr working on anything that is possible with reverse proxy, the service is exposed at 0.0.0.0:5690 in the docker container and that's about it.
Perhaps the docs are lacking in terms of path endpoints, but there is nothing that stops wizarr from working with that setup, it sounds more like a configration issue on your Reverse Proxy.

If you hop on to the discord server, I believe someone has already mentioned this :) https://discord.gg/SFbRKwxy

Edit: Oh and the APP_URL is only used for generating the invite links (so that when you copy them, it uses the correct URL, it has nothing to do with the access to the service) :). You put gibberish and it would just stop you from having an easy to copy link from within Wizarr.

from wizarr.

D4rk56 avatar D4rk56 commented on September 20, 2024

Same :/

  # -- Wizarr --
  location /wizarr {
            	proxy_pass http://172.18.0.1:5690;

from wizarr.

spiritualized avatar spiritualized commented on September 20, 2024

@mtthidoteu Wizarr cannot work properly on a prefix behind a reverse proxy without explicit support. If the application isn't aware that it is available on a prefix, then relative endpoints and static assets will be incorrectly served as if they exist on the domain root.

It is possible to look for each endpoint and manually map them through on the reverse proxy, like so...

    location ~ ^(/join|/j|/setup|/static) {
        proxy_pass http://wizarr:5690;
    }

however, this is a hack. If any endpoints on the app are added/edited, each existing user will have to edit their reverse proxy configuration, every time. The reverse proxy configuration should be unaware of Wizarr's implementation and specific endpoints.

In scenarios where a user needs a web application to run in a prefix, typically more than one web application is running on the same domain. Since Wizarr's static assets are located in /static, this means it's impossible to run any other web application alongside it, if it also has a /static folder (and almost all do).

Please consider adding this feature. A quick and easy implementation could take the prefix from an environment variable - then it could easily be passed into the docker container.

from wizarr.

spiritualized avatar spiritualized commented on September 20, 2024

I figured out a way to get wizarr running with a URL prefix. It's possible to use nginx to rewrite HTML coming out of wizarr, and rewrite URL requests coming back in before they are passed to the app. This is still a hack, but it'll coexist alongside other applications on URL prefixes under the same domain. I'll try to keep the following gist updated if any routes are added/modified:

https://gist.github.com/spiritualized/c87fc97148e279b4c59c6fb51c1a7050

from wizarr.

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.