Skip to content

Rewrite when using behind reverse proxy #10

@Pitastic

Description

@Pitastic

Hi,

first of all: Thanks for this project! I am using a fork of MeisterGig for my RPi3.

I got an nginx reverse proxy on the same machine for multiple ssl domains on that host.

When I access example.com the request is proxied to localhost:84 which is bound to checkmk-docker:5000

The problem is that in the container the request gets rewritten to 0.0.0.0:5000 which is not accessable on the proxy host and of course even not from the machine I am requesting from. The adress is changing in the browser of my device.

This is my config (certbot striped out)

server {
        server_name example.com;
        proxy_set_header   Host $http_host;
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;

        location / {
                proxy_pass http://localhost:84/;
        }
        location /websocket {;
                proxy_pass http://localhost:84/websocket;
        }
}

Are there any known configurations or fixes for that. Think it's a common use case...

Should be related to #6

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions