• File Configuration Reference

    File Configuration Reference

    Dynamic configuration with files

    1. [http]
    2. [http.routers]
    3. [http.routers.Router0]
    4. entryPoints = ["foobar", "foobar"]
    5. middlewares = ["foobar", "foobar"]
    6. service = "foobar"
    7. rule = "foobar"
    8. priority = 42
    9. [http.routers.Router0.tls]
    10. options = "foobar"
    11. certResolver = "foobar"
    12. [[http.routers.Router0.tls.domains]]
    13. main = "foobar"
    14. sans = ["foobar", "foobar"]
    15. [[http.routers.Router0.tls.domains]]
    16. main = "foobar"
    17. sans = ["foobar", "foobar"]
    18. [http.routers.Router1]
    19. entryPoints = ["foobar", "foobar"]
    20. middlewares = ["foobar", "foobar"]
    21. service = "foobar"
    22. rule = "foobar"
    23. priority = 42
    24. [http.routers.Router1.tls]
    25. options = "foobar"
    26. certResolver = "foobar"
    27. [[http.routers.Router1.tls.domains]]
    28. main = "foobar"
    29. sans = ["foobar", "foobar"]
    30. [[http.routers.Router1.tls.domains]]
    31. main = "foobar"
    32. sans = ["foobar", "foobar"]
    33. [http.services]
    34. [http.services.Service01]
    35. [http.services.Service01.loadBalancer]
    36. passHostHeader = true
    37. [http.services.Service01.loadBalancer.sticky]
    38. [http.services.Service01.loadBalancer.sticky.cookie]
    39. name = "foobar"
    40. secure = true
    41. httpOnly = true
    42. [[http.services.Service01.loadBalancer.servers]]
    43. url = "foobar"
    44. [[http.services.Service01.loadBalancer.servers]]
    45. url = "foobar"
    46. [http.services.Service01.loadBalancer.healthCheck]
    47. scheme = "foobar"
    48. path = "foobar"
    49. port = 42
    50. interval = "foobar"
    51. timeout = "foobar"
    52. hostname = "foobar"
    53. [http.services.Service01.loadBalancer.healthCheck.headers]
    54. name0 = "foobar"
    55. name1 = "foobar"
    56. [http.services.Service01.loadBalancer.responseForwarding]
    57. flushInterval = "foobar"
    58. [http.services.Service02]
    59. [http.services.Service02.mirroring]
    60. service = "foobar"
    61. [[http.services.Service02.mirroring.mirrors]]
    62. name = "foobar"
    63. percent = 42
    64. [[http.services.Service02.mirroring.mirrors]]
    65. name = "foobar"
    66. percent = 42
    67. [http.services.Service03]
    68. [http.services.Service03.weighted]
    69. [[http.services.Service03.weighted.services]]
    70. name = "foobar"
    71. weight = 42
    72. [[http.services.Service03.weighted.services]]
    73. name = "foobar"
    74. weight = 42
    75. [http.services.Service03.weighted.sticky]
    76. [http.services.Service03.weighted.sticky.cookie]
    77. name = "foobar"
    78. secure = true
    79. httpOnly = true
    80. [http.middlewares]
    81. [http.middlewares.Middleware00]
    82. [http.middlewares.Middleware00.addPrefix]
    83. prefix = "foobar"
    84. [http.middlewares.Middleware01]
    85. [http.middlewares.Middleware01.basicAuth]
    86. users = ["foobar", "foobar"]
    87. usersFile = "foobar"
    88. realm = "foobar"
    89. removeHeader = true
    90. headerField = "foobar"
    91. [http.middlewares.Middleware02]
    92. [http.middlewares.Middleware02.buffering]
    93. maxRequestBodyBytes = 42
    94. memRequestBodyBytes = 42
    95. maxResponseBodyBytes = 42
    96. memResponseBodyBytes = 42
    97. retryExpression = "foobar"
    98. [http.middlewares.Middleware03]
    99. [http.middlewares.Middleware03.chain]
    100. middlewares = ["foobar", "foobar"]
    101. [http.middlewares.Middleware04]
    102. [http.middlewares.Middleware04.circuitBreaker]
    103. expression = "foobar"
    104. [http.middlewares.Middleware05]
    105. [http.middlewares.Middleware05.compress]
    106. [http.middlewares.Middleware06]
    107. [http.middlewares.Middleware06.digestAuth]
    108. users = ["foobar", "foobar"]
    109. usersFile = "foobar"
    110. removeHeader = true
    111. realm = "foobar"
    112. headerField = "foobar"
    113. [http.middlewares.Middleware07]
    114. [http.middlewares.Middleware07.errors]
    115. status = ["foobar", "foobar"]
    116. service = "foobar"
    117. query = "foobar"
    118. [http.middlewares.Middleware08]
    119. [http.middlewares.Middleware08.forwardAuth]
    120. address = "foobar"
    121. trustForwardHeader = true
    122. authResponseHeaders = ["foobar", "foobar"]
    123. [http.middlewares.Middleware08.forwardAuth.tls]
    124. ca = "foobar"
    125. caOptional = true
    126. cert = "foobar"
    127. key = "foobar"
    128. insecureSkipVerify = true
    129. [http.middlewares.Middleware09]
    130. [http.middlewares.Middleware09.headers]
    131. accessControlAllowCredentials = true
    132. accessControlAllowHeaders = ["foobar", "foobar"]
    133. accessControlAllowMethods = ["foobar", "foobar"]
    134. accessControlAllowOrigin = "foobar"
    135. accessControlExposeHeaders = ["foobar", "foobar"]
    136. accessControlMaxAge = 42
    137. addVaryHeader = true
    138. allowedHosts = ["foobar", "foobar"]
    139. hostsProxyHeaders = ["foobar", "foobar"]
    140. sslRedirect = true
    141. sslTemporaryRedirect = true
    142. sslHost = "foobar"
    143. sslForceHost = true
    144. stsSeconds = 42
    145. stsIncludeSubdomains = true
    146. stsPreload = true
    147. forceSTSHeader = true
    148. frameDeny = true
    149. customFrameOptionsValue = "foobar"
    150. contentTypeNosniff = true
    151. browserXssFilter = true
    152. customBrowserXSSValue = "foobar"
    153. contentSecurityPolicy = "foobar"
    154. publicKey = "foobar"
    155. referrerPolicy = "foobar"
    156. featurePolicy = "foobar"
    157. isDevelopment = true
    158. [http.middlewares.Middleware09.headers.customRequestHeaders]
    159. name0 = "foobar"
    160. name1 = "foobar"
    161. [http.middlewares.Middleware09.headers.customResponseHeaders]
    162. name0 = "foobar"
    163. name1 = "foobar"
    164. [http.middlewares.Middleware09.headers.sslProxyHeaders]
    165. name0 = "foobar"
    166. name1 = "foobar"
    167. [http.middlewares.Middleware10]
    168. [http.middlewares.Middleware10.ipWhiteList]
    169. sourceRange = ["foobar", "foobar"]
    170. [http.middlewares.Middleware10.ipWhiteList.ipStrategy]
    171. depth = 42
    172. excludedIPs = ["foobar", "foobar"]
    173. [http.middlewares.Middleware11]
    174. [http.middlewares.Middleware11.inFlightReq]
    175. amount = 42
    176. [http.middlewares.Middleware11.inFlightReq.sourceCriterion]
    177. requestHeaderName = "foobar"
    178. requestHost = true
    179. [http.middlewares.Middleware11.inFlightReq.sourceCriterion.ipStrategy]
    180. depth = 42
    181. excludedIPs = ["foobar", "foobar"]
    182. [http.middlewares.Middleware12]
    183. [http.middlewares.Middleware12.passTLSClientCert]
    184. pem = true
    185. [http.middlewares.Middleware12.passTLSClientCert.info]
    186. notAfter = true
    187. notBefore = true
    188. sans = true
    189. [http.middlewares.Middleware12.passTLSClientCert.info.subject]
    190. country = true
    191. province = true
    192. locality = true
    193. organization = true
    194. commonName = true
    195. serialNumber = true
    196. domainComponent = true
    197. [http.middlewares.Middleware12.passTLSClientCert.info.issuer]
    198. country = true
    199. province = true
    200. locality = true
    201. organization = true
    202. commonName = true
    203. serialNumber = true
    204. domainComponent = true
    205. [http.middlewares.Middleware13]
    206. [http.middlewares.Middleware13.rateLimit]
    207. average = 42
    208. burst = 42
    209. [http.middlewares.Middleware13.rateLimit.sourceCriterion]
    210. requestHeaderName = "foobar"
    211. requestHost = true
    212. [http.middlewares.Middleware13.rateLimit.sourceCriterion.ipStrategy]
    213. depth = 42
    214. excludedIPs = ["foobar", "foobar"]
    215. [http.middlewares.Middleware14]
    216. [http.middlewares.Middleware14.redirectRegex]
    217. regex = "foobar"
    218. replacement = "foobar"
    219. permanent = true
    220. [http.middlewares.Middleware15]
    221. [http.middlewares.Middleware15.redirectScheme]
    222. scheme = "foobar"
    223. port = "foobar"
    224. permanent = true
    225. [http.middlewares.Middleware16]
    226. [http.middlewares.Middleware16.replacePath]
    227. path = "foobar"
    228. [http.middlewares.Middleware17]
    229. [http.middlewares.Middleware17.replacePathRegex]
    230. regex = "foobar"
    231. replacement = "foobar"
    232. [http.middlewares.Middleware18]
    233. [http.middlewares.Middleware18.retry]
    234. attempts = 42
    235. [http.middlewares.Middleware19]
    236. [http.middlewares.Middleware19.stripPrefix]
    237. prefixes = ["foobar", "foobar"]
    238. [http.middlewares.Middleware20]
    239. [http.middlewares.Middleware20.stripPrefixRegex]
    240. regex = ["foobar", "foobar"]
    241. [tcp]
    242. [tcp.routers]
    243. [tcp.routers.TCPRouter0]
    244. entryPoints = ["foobar", "foobar"]
    245. service = "foobar"
    246. rule = "foobar"
    247. [tcp.routers.TCPRouter0.tls]
    248. passthrough = true
    249. options = "foobar"
    250. certResolver = "foobar"
    251. [[tcp.routers.TCPRouter0.tls.domains]]
    252. main = "foobar"
    253. sans = ["foobar", "foobar"]
    254. [[tcp.routers.TCPRouter0.tls.domains]]
    255. main = "foobar"
    256. sans = ["foobar", "foobar"]
    257. [tcp.routers.TCPRouter1]
    258. entryPoints = ["foobar", "foobar"]
    259. service = "foobar"
    260. rule = "foobar"
    261. [tcp.routers.TCPRouter1.tls]
    262. passthrough = true
    263. options = "foobar"
    264. certResolver = "foobar"
    265. [[tcp.routers.TCPRouter1.tls.domains]]
    266. main = "foobar"
    267. sans = ["foobar", "foobar"]
    268. [[tcp.routers.TCPRouter1.tls.domains]]
    269. main = "foobar"
    270. sans = ["foobar", "foobar"]
    271. [tcp.services]
    272. [tcp.services.TCPService0]
    273. [tcp.services.TCPService0.loadBalancer]
    274. terminationDelay = 100
    275. [[tcp.services.TCPService0.loadBalancer.servers]]
    276. address = "foobar"
    277. [[tcp.services.TCPService0.loadBalancer.servers]]
    278. address = "foobar"
    279. [tcp.services.TCPService1]
    280. [tcp.services.TCPService1.loadBalancer]
    281. terminationDelay = 100
    282. [[tcp.services.TCPService1.loadBalancer.servers]]
    283. address = "foobar"
    284. [[tcp.services.TCPService1.loadBalancer.servers]]
    285. address = "foobar"
    286. [tls]
    287. [[tls.certificates]]
    288. certFile = "foobar"
    289. keyFile = "foobar"
    290. stores = ["foobar", "foobar"]
    291. [[tls.certificates]]
    292. certFile = "foobar"
    293. keyFile = "foobar"
    294. stores = ["foobar", "foobar"]
    295. [tls.options]
    296. [tls.options.Options0]
    297. minVersion = "foobar"
    298. cipherSuites = ["foobar", "foobar"]
    299. sniStrict = true
    300. [tls.options.Options0.clientAuth]
    301. caFiles = ["foobar", "foobar"]
    302. clientAuthType = "foobar"
    303. [tls.options.Options1]
    304. minVersion = "foobar"
    305. cipherSuites = ["foobar", "foobar"]
    306. sniStrict = true
    307. [tls.options.Options1.clientAuth]
    308. caFiles = ["foobar", "foobar"]
    309. clientAuthType = "foobar"
    310. [tls.stores]
    311. [tls.stores.Store0]
    312. [tls.stores.Store0.defaultCertificate]
    313. certFile = "foobar"
    314. keyFile = "foobar"
    315. [tls.stores.Store1]
    316. [tls.stores.Store1.defaultCertificate]
    317. certFile = "foobar"
    318. keyFile = "foobar"
    1. http:
    2. routers:
    3. Router0:
    4. entryPoints:
    5. - foobar
    6. - foobar
    7. middlewares:
    8. - foobar
    9. - foobar
    10. service: foobar
    11. rule: foobar
    12. priority: 42
    13. tls:
    14. options: foobar
    15. certResolver: foobar
    16. domains:
    17. - main: foobar
    18. sans:
    19. - foobar
    20. - foobar
    21. - main: foobar
    22. sans:
    23. - foobar
    24. - foobar
    25. Router1:
    26. entryPoints:
    27. - foobar
    28. - foobar
    29. middlewares:
    30. - foobar
    31. - foobar
    32. service: foobar
    33. rule: foobar
    34. priority: 42
    35. tls:
    36. options: foobar
    37. certResolver: foobar
    38. domains:
    39. - main: foobar
    40. sans:
    41. - foobar
    42. - foobar
    43. - main: foobar
    44. sans:
    45. - foobar
    46. - foobar
    47. services:
    48. Service01:
    49. loadBalancer:
    50. sticky:
    51. cookie:
    52. name: foobar
    53. secure: true
    54. httpOnly: true
    55. servers:
    56. - url: foobar
    57. - url: foobar
    58. healthCheck:
    59. scheme: foobar
    60. path: foobar
    61. port: 42
    62. interval: foobar
    63. timeout: foobar
    64. hostname: foobar
    65. headers:
    66. name0: foobar
    67. name1: foobar
    68. passHostHeader: true
    69. responseForwarding:
    70. flushInterval: foobar
    71. Service02:
    72. mirroring:
    73. service: foobar
    74. mirrors:
    75. - name: foobar
    76. percent: 42
    77. - name: foobar
    78. percent: 42
    79. Service03:
    80. weighted:
    81. services:
    82. - name: foobar
    83. weight: 42
    84. - name: foobar
    85. weight: 42
    86. sticky:
    87. cookie:
    88. name: foobar
    89. secure: true
    90. httpOnly: true
    91. middlewares:
    92. Middleware00:
    93. addPrefix:
    94. prefix: foobar
    95. Middleware01:
    96. basicAuth:
    97. users:
    98. - foobar
    99. - foobar
    100. usersFile: foobar
    101. realm: foobar
    102. removeHeader: true
    103. headerField: foobar
    104. Middleware02:
    105. buffering:
    106. maxRequestBodyBytes: 42
    107. memRequestBodyBytes: 42
    108. maxResponseBodyBytes: 42
    109. memResponseBodyBytes: 42
    110. retryExpression: foobar
    111. Middleware03:
    112. chain:
    113. middlewares:
    114. - foobar
    115. - foobar
    116. Middleware04:
    117. circuitBreaker:
    118. expression: foobar
    119. Middleware05:
    120. compress: {}
    121. Middleware06:
    122. digestAuth:
    123. users:
    124. - foobar
    125. - foobar
    126. usersFile: foobar
    127. removeHeader: true
    128. realm: foobar
    129. headerField: foobar
    130. Middleware07:
    131. errors:
    132. status:
    133. - foobar
    134. - foobar
    135. service: foobar
    136. query: foobar
    137. Middleware08:
    138. forwardAuth:
    139. address: foobar
    140. tls:
    141. ca: foobar
    142. caOptional: true
    143. cert: foobar
    144. key: foobar
    145. insecureSkipVerify: true
    146. trustForwardHeader: true
    147. authResponseHeaders:
    148. - foobar
    149. - foobar
    150. Middleware09:
    151. headers:
    152. customRequestHeaders:
    153. name0: foobar
    154. name1: foobar
    155. customResponseHeaders:
    156. name0: foobar
    157. name1: foobar
    158. accessControlAllowCredentials: true
    159. accessControlAllowHeaders:
    160. - foobar
    161. - foobar
    162. accessControlAllowMethods:
    163. - foobar
    164. - foobar
    165. accessControlAllowOrigin: foobar
    166. accessControlExposeHeaders:
    167. - foobar
    168. - foobar
    169. accessControlMaxAge: 42
    170. addVaryHeader: true
    171. allowedHosts:
    172. - foobar
    173. - foobar
    174. hostsProxyHeaders:
    175. - foobar
    176. - foobar
    177. sslRedirect: true
    178. sslTemporaryRedirect: true
    179. sslHost: foobar
    180. sslProxyHeaders:
    181. name0: foobar
    182. name1: foobar
    183. sslForceHost: true
    184. stsSeconds: 42
    185. stsIncludeSubdomains: true
    186. stsPreload: true
    187. forceSTSHeader: true
    188. frameDeny: true
    189. customFrameOptionsValue: foobar
    190. contentTypeNosniff: true
    191. browserXssFilter: true
    192. customBrowserXSSValue: foobar
    193. contentSecurityPolicy: foobar
    194. publicKey: foobar
    195. referrerPolicy: foobar
    196. featurePolicy: foobar
    197. isDevelopment: true
    198. Middleware10:
    199. ipWhiteList:
    200. sourceRange:
    201. - foobar
    202. - foobar
    203. ipStrategy:
    204. depth: 42
    205. excludedIPs:
    206. - foobar
    207. - foobar
    208. Middleware11:
    209. inFlightReq:
    210. amount: 42
    211. sourceCriterion:
    212. ipstrategy:
    213. depth: 42
    214. excludedIPs:
    215. - foobar
    216. - foobar
    217. requestHeaderName: foobar
    218. requestHost: true
    219. Middleware12:
    220. passTLSClientCert:
    221. pem: true
    222. info:
    223. notAfter: true
    224. notBefore: true
    225. sans: true
    226. subject:
    227. country: true
    228. province: true
    229. locality: true
    230. organization: true
    231. commonName: true
    232. serialNumber: true
    233. domainComponent: true
    234. issuer:
    235. country: true
    236. province: true
    237. locality: true
    238. organization: true
    239. commonName: true
    240. serialNumber: true
    241. domainComponent: true
    242. Middleware13:
    243. rateLimit:
    244. average: 42
    245. burst: 42
    246. sourceCriterion:
    247. ipstrategy:
    248. depth: 42
    249. excludedIPs:
    250. - foobar
    251. - foobar
    252. requestHeaderName: foobar
    253. requestHost: true
    254. Middleware14:
    255. redirectRegex:
    256. regex: foobar
    257. replacement: foobar
    258. permanent: true
    259. Middleware15:
    260. redirectScheme:
    261. scheme: foobar
    262. port: foobar
    263. permanent: true
    264. Middleware16:
    265. replacePath:
    266. path: foobar
    267. Middleware17:
    268. replacePathRegex:
    269. regex: foobar
    270. replacement: foobar
    271. Middleware18:
    272. retry:
    273. attempts: 42
    274. Middleware19:
    275. stripPrefix:
    276. prefixes:
    277. - foobar
    278. - foobar
    279. Middleware20:
    280. stripPrefixRegex:
    281. regex:
    282. - foobar
    283. - foobar
    284. tcp:
    285. routers:
    286. TCPRouter0:
    287. entryPoints:
    288. - foobar
    289. - foobar
    290. service: foobar
    291. rule: foobar
    292. tls:
    293. passthrough: true
    294. options: foobar
    295. certResolver: foobar
    296. domains:
    297. - main: foobar
    298. sans:
    299. - foobar
    300. - foobar
    301. - main: foobar
    302. sans:
    303. - foobar
    304. - foobar
    305. TCPRouter1:
    306. entryPoints:
    307. - foobar
    308. - foobar
    309. service: foobar
    310. rule: foobar
    311. tls:
    312. passthrough: true
    313. options: foobar
    314. certResolver: foobar
    315. domains:
    316. - main: foobar
    317. sans:
    318. - foobar
    319. - foobar
    320. - main: foobar
    321. sans:
    322. - foobar
    323. - foobar
    324. services:
    325. TCPService0:
    326. loadBalancer:
    327. terminationDelay: 100
    328. servers:
    329. - address: foobar
    330. - address: foobar
    331. TCPService1:
    332. loadBalancer:
    333. terminationDelay: 100
    334. servers:
    335. - address: foobar
    336. - address: foobar
    337. tls:
    338. certificates:
    339. - certFile: foobar
    340. keyFile: foobar
    341. stores:
    342. - foobar
    343. - foobar
    344. - certFile: foobar
    345. keyFile: foobar
    346. stores:
    347. - foobar
    348. - foobar
    349. options:
    350. Options0:
    351. minVersion: foobar
    352. cipherSuites:
    353. - foobar
    354. - foobar
    355. clientAuth:
    356. caFiles:
    357. - foobar
    358. - foobar
    359. clientAuthType: foobar
    360. sniStrict: true
    361. Options1:
    362. minVersion: foobar
    363. cipherSuites:
    364. - foobar
    365. - foobar
    366. clientAuth:
    367. caFiles:
    368. - foobar
    369. - foobar
    370. clientAuthType: foobar
    371. sniStrict: true
    372. stores:
    373. Store0:
    374. defaultCertificate:
    375. certFile: foobar
    376. keyFile: foobar
    377. Store1:
    378. defaultCertificate:
    379. certFile: foobar
    380. keyFile: foobar