Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for Nginx reverse proxy setup behind a subfolder #946

Open
wsdookadr opened this issue Sep 26, 2024 · 1 comment
Open

Documentation for Nginx reverse proxy setup behind a subfolder #946

wsdookadr opened this issue Sep 26, 2024 · 1 comment

Comments

@wsdookadr
Copy link

wsdookadr commented Sep 26, 2024

Is your feature request related to a problem? Please describe.
Whenever self-hosting an app like this, an ready-made Nginx configuration would be really useful.
Because I like Teable but I'm not familiar with Nextjs or with all the settings Teable has, it's hard for me to know if it's possible to host Teable behind a subfolder reverse proxy on Nginx.
Examples of Nginx reverse proxy subfolder setups: example1 example2.

Describe the solution you'd like
An environment variable that tells the app it's running under a subfolder.
A ready-made subfolder Nginx reverse proxy configuration to serve Teable from a subfolder, example: http://somedomain/teable/.

This is important to have because there's different classes of users, some end-users, some powerusers, and others who want to customize/change behavior/tweak/adding features (developers).

Describe alternatives you've considered
I've tried to set PUBLIC_ORIGIN=http://192.168.1.150:3000/teable but this doesn't achieve the desired result. I'm still wondering what this environment variable is for.
As a last resort it would be possible to use sub_filter in Nginx to rewrite the urls for the endpoints and all other resources used on a case-by-case basis but it's a complete hack and very tedious.

I've also tried to change basePath in next.config.js and rebuilding the Docker image but it still didn't work.

Other than that, Teable is an amazing app and I like it a lot.

@Dough-su
Copy link

Dough-su commented Oct 6, 2024

I have the same issue, and I also implemented it using Nginx's sub_filter. I can upload files now, but I still can't preview images on the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants