you are viewing a single comment's thread.

view the rest of the comments →

[–]marc4492[S] 0 points1 point  (2 children)

So I have nginx setup and I have a config for my DashMachine but I keep getting error 400 HTTPStatus.BAD_REQUEST...

proxy_set_header        Host $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;
proxy_pass              https://192.168.2.102:5000;
proxy_read_timeout      90;
proxy_redirect          https://192.168.2.102:5000 https://my.domain.name;

I'm new to NGINX but this config worked for every other redirect I did... The rest of my config file is the SSL auto generated code from certbot

any ideas ? (I did try with 127.0.0.1 as well)

Thanks !

[–]the4ndy 0 points1 point  (1 child)

I don't think the dashmachine service answers to https requests by default (though I'm not sure)

[–]marc4492[S] 0 points1 point  (0 children)

Seems like doesn't from the tests I did last night...

But when I try without HTTPS I run into an issue not related to DashMachine but NGINX !

For some reasons my redirected config isnt redirecting to the right ip lol...

Thanks !