feat: serve INetMock sources via Caddy

This commit is contained in:
Peter 2022-12-30 20:16:49 +01:00
parent c6c321b726
commit 1132500d46
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 23 additions and 15 deletions

18
.dockerignore Normal file
View file

@ -0,0 +1,18 @@
###############
# Directories #
###############
.concourse/
public/
deploy/helm/
.git/
#########
# Files #
#########
Dockerfile
LICENSE
README.md
.gitignore
.dockerignore

View file

@ -12,26 +12,16 @@
"match": [ "match": [
{ {
"path": [ "path": [
"/inetmock/*" "/inetmock*"
] ]
} }
], ],
"handle": [ "handle": [
{ {
"handler": "reverse_proxy", "handler": "gopkg",
"upstreams": [ "path": "/inetmock",
{ "vcs": "git",
"dial": "gitea-http.gitea.svc.cluster.local:3000" "url": "https://code.icb4dc0.de/inetmock/inetmock"
}
],
"rewrite": {
"path_regexp": [
{
"find": "^\\/inetmock",
"replace": "/inetmock/inetmock"
}
]
}
} }
] ]
}, },