Skip to content

Instantly share code, notes, and snippets.

@double-p
Created September 25, 2019 06:22
Show Gist options
  • Save double-p/4d111d194a3bf0356c5720dc7025e3da to your computer and use it in GitHub Desktop.
Save double-p/4d111d194a3bf0356c5720dc7025e3da to your computer and use it in GitHub Desktop.
frontend zammad
acl ssfn_path_zammad path_beg /zammad /assets /api
acl ssfn_path_zammadws path_beg /zammad/ws /ws
acl ssfn_type_websocket hdr(Upgrade) -i WebSocket
use_backend ssfn_zammad if ssfn_path_zammad !ssfn_path_zammadws
use_backend ssfn_zammad_websocket if ssfn_path_zammadws
use_backend ssfn_zammad_websocket if ssfn_type_websocket
backend ssfn_zammad
http-request set-header X-Real-IP %ci
http-request set-path %[path,regsub(^/zammad/?,/)]
server ssfnzam111 ssfnzam111:3000 check downinter 5s fastinter 2s fall 5
backend ssfn_zammad_websocket
http-request set-header X-Real-IP %ci
http-request set-header Connection "Upgrade"
http-request set-path %[path,regsub(^/zammad/?,/)]
server ssfnzam111 ssfnzam111:6042 check downinter 5s fastinter 2s fall 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment