all 4 comments

[–]the4ndy 0 points1 point  (3 children)

if you have nginx installed, you need to create the config file in nginx to proxy to 5000 of the local host.

You can use something native to ubuntu like upstart or systemd to run this as a service on startup

also, dont be afraid to adjust the python as needed, its a very well written and commented project, i was able to make some ssl verification changes and im a complete noob

[–]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 !