oc_condition_1Condition type = Host matches Host String = omada.domain.tld (your public domain)oc_condition_2Condition type = Host regexHost Regex = ^omada\.domain\.ltd(:([0-9]){1,5})?$
oc_rule_1 Test type = IF[default]Select conditions = oc_condition_1Execute function = Use specified Backend PoolUse Backend pool = omada_pooloc_rule_2Test type = IF[default]Select conditions = oc_condition_1,oc_condition_2 Execute function = http-request header setHTTP Header = hostHeader Content = omada.domain.tld:8043oc_rule_3Select conditions = Nothing selectedExecute function = Custom RuleOption pass-through = http-response replace-value location 8043 %[hdr(location),regsub(8043,443)]
omada_serverType = staticFQDN or IP = 192.168.1.0 (your localhost ip)Port = 8043Mode = activeSSL = trueVerify SSL Certificate = false
omada_poolServers = omada_serverSelect Rules = oc_rule_2,oc_rule_3
public_https Select Rules = oc_rule_1
### Omada Pool ###Code: [Select]omada_poolServers = omada_serverSelect Rules = oc_rule_2,oc_rule_3