############################################################################################

## ALTERING THIS LICENCE WILL CAUSE LOAD BALANCER TO FAIL                          #########

License = "XXXX-XXXX-XXXX-XXXX"                                                    #########

############################################################################################


#############################

## GLOBAL CONFIGURATION  ####

#############################


#debug = true

logLevel = "INFO"


#Dynamically load configuration without restarting

[file]

watch = true


#[Retries]

#number = 5


######ENTRYPOINTS DEFINITION

[entryPoints]


[entryPoints.http]

#Hint, leave the IP address out to listen to all traffic on port 80 regardless of IP address.

address = "xxx.xxx.xxx.xxx:80"

compress = true


[entryPoints.http.redirect]

entryPoint = "https"


[entryPoints.https]

#Hint, leave the IP address out to listen to all traffic on port 443 regardless of IP address.

address = "xxx.xxx.xxx.xxx:443"

compress = true


[entryPoints.https.tls]

minVersion = "VersionTLS12"

cipherSuites = ["TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256","TLS_RSA_WITH_AES_256_GCM_SHA384"]


[[entryPoints.https.tls.certificates]]

certFile = "C:/a5/ssl/mydomain.crt"

keyFile = "C:/a5/ssl/mydomain.key"

               

######FRONTEND DEFINITION

[frontends]


[frontends.frontend1]

entryPoints = ["http", "https"]

backend = "backend1"

passHostHeader = true

#whitelistSourceRange = ["10.42.0.0/16", "152.89.1.33/32", "afed:be44::/16"] // forbidden if not part of range


[frontends.frontend1.routes.route1]

rule = "Host: mydomain.com,www.mydomain.com,xxx.xxx.xxx.xxx"



################# BELOW IMPLEMENTED IMMEDIATELY IF watch=true ########################


######BACKEND DEFINITION

[backends]


[backends.backend1]


[backends.backend1.loadBalancer]

method = "drr"


[backends.backend1.loadBalancer.stickiness]


[backends.backend1.healthcheck]

path = "/"

#path = "/optional_healthcheck_page.a5w"

interval = "30s"


[backends.backend1.servers]


[backends.backend1.servers.server1]

url = "http://127.0.0.1:84"


[backends.backend1.servers.server2]

url = "http://127.0.0.1:85"


#[backends.backend1.servers.server3]

#url = "http://127.0.0.1:86"


#[backends.backend1.servers.server4]

#url = "http://127.0.0.1:87"


#[backends.backend1.servers.server5]

#url = "http://127.0.0.1:88"


#[backends.backend1.servers.server6]

#url = "http://127.0.0.1:89"


#[backends.backend1.servers.server7]

#url = "http://127.0.0.1:90"


#[backends.backend1.servers.server8]

#url = "http://127.0.0.1:91"


######LOGS

[InfoLog]

filePath = "c:/alphalb/alphaLB_info.log"

format = "common"


[accessLog]

filePath = "c:/alphalb/alphaLB_access.log"

format = "common"


######API FOR STATS

#[API]

#port = 8080