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

API browser should use relative links #1576

Open
kroepke opened this issue Nov 20, 2015 · 4 comments
Open

API browser should use relative links #1576

kroepke opened this issue Nov 20, 2015 · 4 comments

Comments

@kroepke
Copy link
Member

kroepke commented Nov 20, 2015

It seems like certain proxy setups have problems with the links the API browser code generates.

Since this is adapted Swagger code we don't have direct control over it, investigate if we can update the version or tweak it so that proxy support is actually possible.

@juhau1
Copy link

juhau1 commented Apr 20, 2016

+1 for getting this fixed. API browser is currently not working behind proxy.

Swagger has options to change the UI path, see options.apiDocs and options.swaggerUi in https://github.com/apigee-127/swagger-tools/blob/master/docs/Middleware.md.

@davama
Copy link

davama commented Jan 19, 2018

I know this is quite old. @jalogisch kindly referenced me to this ticket.
Any chance to attempt this?
Thanks!

@ntimo
Copy link

ntimo commented Nov 12, 2019

Any chance this is going to be fixed soon? Would be nice to be able to explore the API behind a reverse proxy.

@xWTF
Copy link

xWTF commented Jul 19, 2024

I'm a bit surprised that this issue still wasn't fixed in Graylog 6.0.

If you're using Nginx, here's one way to fix it using http_sub_module:

location ~ ^/api/api-(browser/$|docs/) {
    proxy_set_header Accept-Encoding "";

    sub_filter 'http://<Your Node IP>:80/' '$scheme://$host/';
    sub_filter_once off;
    sub_filter_types text/html application/json;

    proxy_pass http://<Your Node IP>;
}

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

No branches or pull requests

6 participants