Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4720

Haproxy & pyload

$
0
0

@fraisdos125 wrote:

Hello,

Discovering the world of haproxy with :

  • HA-Proxy version 1.7.5-2
  • 6 servers on a raspberry:
    • Plex
    • Ocotprint
    • Domoticz
    • PyLoad
    • Transmission

Haproxy is used for ssl termisation. As Plex has his own encryption method, no backend for it.
For the others:
use_backend webcam if { path_beg /webcam/ }
use_backend pyload if { path_beg /pyload/ }
use_backend transmission if { path_beg /transmission/ }
use_backend domoticz if { path_beg /domoticz/ }
default_backend octoprint

backend webcam
reqrep ^([^\ :])\ /webcam/(.) \1\ /\2
server webcam 127.0.0.1:8081

backend pyload
reqrep ^([^\ :])\ /pyload/(.) \1\ /\2
rsprep ^([^\ :])/(.) \1\ /pyload/\2
server pyload 127.0.0.1:8000 check

backend transmission
option forwardfor
server transmission 127.0.0.1:9091

backend domoticz
reqrep ^([^\ :])\ /domoticz/(.) \1\ /\2
server domoticz 127.0.0.1:8080

backend octoprint

reqrep ^([^\ :])\ /(.) \1\ /\2

    option	forwardfor
    server octoprint 127.0.0.1:5000

I have a issue with the backend pyload.
If I click on a button on the main page, for example downloads, my webrowser will get the url https://my.server.org/downloads. In that case the backend default will be used.
I should modify the response to https://my.server.org/pyload/downloads

I think this can be carried out with rsprep, is-it right ? Any other advices ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>