Coder Social home page Coder Social logo

Add support for reverse proxy about chatpad HOT 4 OPEN

T3rm1 avatar T3rm1 commented on July 16, 2024
Add support for reverse proxy

from chatpad.

Comments (4)

zer0ish avatar zer0ish commented on July 16, 2024

I'm behind a reverse proxy and have no issues.

Pfsense for router with Cloudflare, server is unraid and using Nginx Proxy Manager.
I use ai.mydomain.net where mydomain.net is the main website.
Also had no issues using HAProxy on pfsense.

from chatpad.

T3rm1 avatar T3rm1 commented on July 16, 2024

What you do is something different. Of course it works behind a reverse proxy and a separate sub domain. But it won't work if you require a non root path.

from chatpad.

ItzDerock avatar ItzDerock commented on July 16, 2024

@T3rm1 Are you able to see if my PR fixes your issue?
My PR adds an environment variable called BASEPATH that can be set, for example, to /chatpadai.
This will update the site <base> tag and lets react router know of the new basepath.

It will not serve the files for you under the new basepath though, you will have to configure a reverse proxy to do that for you. Let me know if this is a problem, and I can make it update the container's webserver to serve under the specified base path.

from chatpad.

T3rm1 avatar T3rm1 commented on July 16, 2024

I checkout out your branch and tested it but it doesn't work. JS and CSS files are sill requested from root path which won't work.

from chatpad.

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.