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. forceSlash = true
  239. [http.middlewares.Middleware20]
  240. [http.middlewares.Middleware20.stripPrefixRegex]
  241. regex = ["foobar", "foobar"]
  242. [tcp]
  243. [tcp.routers]
  244. [tcp.routers.TCPRouter0]
  245. entryPoints = ["foobar", "foobar"]
  246. service = "foobar"
  247. rule = "foobar"
  248. [tcp.routers.TCPRouter0.tls]
  249. passthrough = true
  250. options = "foobar"
  251. certResolver = "foobar"
  252. [[tcp.routers.TCPRouter0.tls.domains]]
  253. main = "foobar"
  254. sans = ["foobar", "foobar"]
  255. [[tcp.routers.TCPRouter0.tls.domains]]
  256. main = "foobar"
  257. sans = ["foobar", "foobar"]
  258. [tcp.routers.TCPRouter1]
  259. entryPoints = ["foobar", "foobar"]
  260. service = "foobar"
  261. rule = "foobar"
  262. [tcp.routers.TCPRouter1.tls]
  263. passthrough = true
  264. options = "foobar"
  265. certResolver = "foobar"
  266. [[tcp.routers.TCPRouter1.tls.domains]]
  267. main = "foobar"
  268. sans = ["foobar", "foobar"]
  269. [[tcp.routers.TCPRouter1.tls.domains]]
  270. main = "foobar"
  271. sans = ["foobar", "foobar"]
  272. [tcp.services]
  273. [tcp.services.TCPService01]
  274. [tcp.services.TCPService01.loadBalancer]
  275. terminationDelay = 42
  276. [[tcp.services.TCPService01.loadBalancer.servers]]
  277. address = "foobar"
  278. [[tcp.services.TCPService01.loadBalancer.servers]]
  279. address = "foobar"
  280. [tcp.services.TCPService02]
  281. [tcp.services.TCPService02.weighted]
  282. [[tcp.services.TCPService02.weighted.services]]
  283. name = "foobar"
  284. weight = 42
  285. [[tcp.services.TCPService02.weighted.services]]
  286. name = "foobar"
  287. weight = 42
  288. [tls]
  289. [[tls.certificates]]
  290. certFile = "foobar"
  291. keyFile = "foobar"
  292. stores = ["foobar", "foobar"]
  293. [[tls.certificates]]
  294. certFile = "foobar"
  295. keyFile = "foobar"
  296. stores = ["foobar", "foobar"]
  297. [tls.options]
  298. [tls.options.Options0]
  299. minVersion = "foobar"
  300. maxVersion = "foobar"
  301. cipherSuites = ["foobar", "foobar"]
  302. sniStrict = true
  303. curvePreferences = ["foobar", "foobar"]
  304. [tls.options.Options0.clientAuth]
  305. caFiles = ["foobar", "foobar"]
  306. clientAuthType = "foobar"
  307. [tls.options.Options1]
  308. minVersion = "foobar"
  309. maxVersion = "foobar"
  310. cipherSuites = ["foobar", "foobar"]
  311. sniStrict = true
  312. curvePreferences = ["foobar", "foobar"]
  313. [tls.options.Options1.clientAuth]
  314. caFiles = ["foobar", "foobar"]
  315. clientAuthType = "foobar"
  316. [tls.stores]
  317. [tls.stores.Store0]
  318. [tls.stores.Store0.defaultCertificate]
  319. certFile = "foobar"
  320. keyFile = "foobar"
  321. [tls.stores.Store1]
  322. [tls.stores.Store1.defaultCertificate]
  323. certFile = "foobar"
  324. 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. forceSlash: true
  280. Middleware20:
  281. stripPrefixRegex:
  282. regex:
  283. - foobar
  284. - foobar
  285. tcp:
  286. routers:
  287. TCPRouter0:
  288. entryPoints:
  289. - foobar
  290. - foobar
  291. service: foobar
  292. rule: foobar
  293. tls:
  294. passthrough: true
  295. options: foobar
  296. certResolver: foobar
  297. domains:
  298. - main: foobar
  299. sans:
  300. - foobar
  301. - foobar
  302. - main: foobar
  303. sans:
  304. - foobar
  305. - foobar
  306. TCPRouter1:
  307. entryPoints:
  308. - foobar
  309. - foobar
  310. service: foobar
  311. rule: foobar
  312. tls:
  313. passthrough: true
  314. options: foobar
  315. certResolver: foobar
  316. domains:
  317. - main: foobar
  318. sans:
  319. - foobar
  320. - foobar
  321. - main: foobar
  322. sans:
  323. - foobar
  324. - foobar
  325. services:
  326. TCPService01:
  327. loadBalancer:
  328. terminationDelay: 42
  329. servers:
  330. - address: foobar
  331. - address: foobar
  332. TCPService02:
  333. weighted:
  334. services:
  335. - name: foobar
  336. weight: 42
  337. - name: foobar
  338. weight: 42
  339. tls:
  340. certificates:
  341. - certFile: foobar
  342. keyFile: foobar
  343. stores:
  344. - foobar
  345. - foobar
  346. - certFile: foobar
  347. keyFile: foobar
  348. stores:
  349. - foobar
  350. - foobar
  351. options:
  352. Options0:
  353. minVersion: foobar
  354. maxVersion: foobar
  355. cipherSuites:
  356. - foobar
  357. - foobar
  358. curvePreferences:
  359. - foobar
  360. - foobar
  361. clientAuth:
  362. caFiles:
  363. - foobar
  364. - foobar
  365. clientAuthType: foobar
  366. sniStrict: true
  367. Options1:
  368. minVersion: foobar
  369. maxVersion: foobar
  370. cipherSuites:
  371. - foobar
  372. - foobar
  373. curvePreferences:
  374. - foobar
  375. - foobar
  376. clientAuth:
  377. caFiles:
  378. - foobar
  379. - foobar
  380. clientAuthType: foobar
  381. sniStrict: true
  382. stores:
  383. Store0:
  384. defaultCertificate:
  385. certFile: foobar
  386. keyFile: foobar
  387. Store1:
  388. defaultCertificate:
  389. certFile: foobar
  390. keyFile: foobar