Syncthing behind nginx (reverse proxy)

  • hi,


    there are some other entry´s but they are very old ... so i start a new one. :)


    Plan is to have one url to bind them all ... with one cert. :P


    https://nas.bla.bla/synthing
    https://nas.bla.bla/sabnzbd (works)
    ....


    i ve found this but the config doesn t work:
    https://docs.syncthing.net/users/reverseproxy.html



    openmediavault-webgui_eror.log:



    2016/11/16 17:29:03 [error] 2588#0: *12163 open() "/var/www/openmediavault/syncthing" failed (2: No such file or directory), client: 10.10.2.101, server: openmediavault-webgui, request: "GET /syncthing HTTP/1.1", host: "nas.bla.bla"



    It would be soooo nice if this automaticly works on openmediavault because ... http is BAD! **pls dont hate me**



    PS: Where can i change the url s for example "open Webinterface" in the omv-webgui for sabnzbd?


    PPS: this Simple fast daemon host webgui access [Nginx] doesn t solve my problem!!! ;)



    br,


    rowie

    HP Proliant Gen8 with ESXi6.5


    Storage - Raid5 with 4 x 3TB WDRed - System on microSD / Datastore on Samsung 850Pro - 250GB

  • hi subzero79,


    i have a working .conf for sabnzbd. Only the syncthing thing doesn t work.
    I m connecting over https://nas.xxxx.xxx (https only) with a trusted public Certificate to my nas. And all links should open in this context.



    Code
    location /sabnzbd {
            proxy_pass        http://localhost:8080/sabnzbd;
            proxy_set_header  Host nas.xxx.xxx;
            proxy_set_header X-Forwarded-Host $host:$server_port;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto https;
            proxy_redirect    default;
    }

    br,
    rowie

    HP Proliant Gen8 with ESXi6.5


    Storage - Raid5 with 4 x 3TB WDRed - System on microSD / Datastore on Samsung 850Pro - 250GB

  • hi subzero79,


    did you read my first post? :)
    i have that entry in /etc/nginx/openmediavault-nginx.d/syncthing.conf
    And i have uses the entrys from you and then from the synthing-team. But it is still not working!


    1. you have to disable "admin over secure connection" in synthing - because you can t you 2 different certs
    2. then it should be possible to terminate the tsl on the nginx and talk http with the synthing
    ...but it doesnt work ... :(



    PS: I think it should be default to enable https on all "open web client" bookmarks (and the webinterface too) in OMV3 because its contemporay.
    And with Letsencrypt it would be an easy one to serve services halfway "secure" to the internet if required.


    br,
    rowie

    HP Proliant Gen8 with ESXi6.5


    Storage - Raid5 with 4 x 3TB WDRed - System on microSD / Datastore on Samsung 850Pro - 250GB

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!