Mejorando configuracion de stacks usando traefik
This commit is contained in:
16
stacks/traefik/dynamic/komodo.yml
Normal file
16
stacks/traefik/dynamic/komodo.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
http:
|
||||
routers:
|
||||
komodo:
|
||||
rule: Host(`komodo.skrd.fun`)
|
||||
entryPoints:
|
||||
- websecure
|
||||
service: komodo-svc
|
||||
tls:
|
||||
certResolver: cf
|
||||
middlewares:
|
||||
- local-only
|
||||
services:
|
||||
komodo-svc:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.102.1:9120"
|
||||
12
stacks/traefik/dynamic/middlewares.yml
Normal file
12
stacks/traefik/dynamic/middlewares.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
http:
|
||||
middlewares:
|
||||
local-only:
|
||||
ipWhiteList:
|
||||
sourceRange:
|
||||
- "192.168.0.0/16"
|
||||
- "10.0.0.0/8"
|
||||
- "127.0.0.1/32"
|
||||
redirect-to-https:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true
|
||||
Reference in New Issue
Block a user