Add infra folder
This commit is contained in:
parent
684b057b27
commit
5c6c0399ab
3 changed files with 36 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -12,7 +12,7 @@ dist-ssr
|
|||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
.vscode
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
|
|
|
|||
24
infra/traefik.toml
Normal file
24
infra/traefik.toml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
address = ":80"
|
||||
[entryPoints.web.http.redirections.entryPoint]
|
||||
to = "websecure"
|
||||
scheme = "https"
|
||||
|
||||
[entryPoints.websecure]
|
||||
address = ":8443"
|
||||
|
||||
[api]
|
||||
dashboard = true
|
||||
|
||||
[certificatesResolvers.lets-encrypt.acme]
|
||||
email = "your_email@your_domain"
|
||||
storage = "acme.json"
|
||||
[certificatesResolvers.lets-encrypt.acme.tlsChallenge]
|
||||
|
||||
[providers.docker]
|
||||
watch = true
|
||||
network = "web"
|
||||
|
||||
[providers.file]
|
||||
filename = "traefik_dynamic.toml"
|
||||
11
infra/traefik_dynamic.toml
Normal file
11
infra/traefik_dynamic.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[http.middlewares.simpleAuth.basicAuth]
|
||||
users = [
|
||||
"admin:$apr1$6UrW4XWI$FsRJ.J3gtXTbs2BJfXCKB1"
|
||||
]
|
||||
[http.routers.api]
|
||||
rule = "Host(`monitor.xtablo.com`)"
|
||||
entrypoints = ["websecure"]
|
||||
middlewares = ["simpleAuth"]
|
||||
service = "api@internal"
|
||||
[http.routers.api.tls]
|
||||
certResolver = "lets-encrypt"
|
||||
Loading…
Reference in a new issue