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