feat: serve INetMock sources via Caddy
This commit is contained in:
parent
c6c321b726
commit
1132500d46
2 changed files with 23 additions and 15 deletions
18
.dockerignore
Normal file
18
.dockerignore
Normal file
|
@ -0,0 +1,18 @@
|
|||
###############
|
||||
# Directories #
|
||||
###############
|
||||
|
||||
.concourse/
|
||||
public/
|
||||
deploy/helm/
|
||||
.git/
|
||||
|
||||
#########
|
||||
# Files #
|
||||
#########
|
||||
|
||||
Dockerfile
|
||||
LICENSE
|
||||
README.md
|
||||
.gitignore
|
||||
.dockerignore
|
|
@ -12,26 +12,16 @@
|
|||
"match": [
|
||||
{
|
||||
"path": [
|
||||
"/inetmock/*"
|
||||
"/inetmock*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"handle": [
|
||||
{
|
||||
"handler": "reverse_proxy",
|
||||
"upstreams": [
|
||||
{
|
||||
"dial": "gitea-http.gitea.svc.cluster.local:3000"
|
||||
}
|
||||
],
|
||||
"rewrite": {
|
||||
"path_regexp": [
|
||||
{
|
||||
"find": "^\\/inetmock",
|
||||
"replace": "/inetmock/inetmock"
|
||||
}
|
||||
]
|
||||
}
|
||||
"handler": "gopkg",
|
||||
"path": "/inetmock",
|
||||
"vcs": "git",
|
||||
"url": "https://code.icb4dc0.de/inetmock/inetmock"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue