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

Separating frontail from its components #252

Open
pmulgaonkar opened this issue Mar 28, 2023 · 0 comments
Open

Separating frontail from its components #252

pmulgaonkar opened this issue Mar 28, 2023 · 0 comments

Comments

@pmulgaonkar
Copy link

I am trying to display frontail in an iframe with a nginx/django frontend in a way that the authentication of the user can be done before the log is displayed. Setting up frontail with nginx (as in your documentation) works fine. Redirect to the frontail from django also works. I have the web browser go to http:///django-api where the authentication happens, and a HTTP redirect to http:///frontail

My requirement is that a user directly entering http:///frontail should not work since it bypasses the django auth. To do that, I can set the /frontail location in the nginx config to be internal;

However, if I do that, when the browser requests the other components of frontail, namely /frontail/ansi_up.js, app.js, tinycon.min.js and socket.io.js they fail because /frontail is marked as internal.

Is there a way around this? Or a feature request to separate the url_paths for frontail from those of its assets. They could both point to the same backend via proxy_pass but the main entry point would be internal and the others external.

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

1 participant