mirror of
https://github.com/yunginnanet/HellPot
synced 2024-06-27 08:18:03 +00:00
Compare commits
9 Commits
0ce1f12fe0
...
478ebe3162
Author | SHA1 | Date | |
---|---|---|---|
478ebe3162 | |||
7e100317ab | |||
c717e6ec5c | |||
8146ee46ed | |||
![]() |
dadb8dd8ee | ||
f80435d2e4 | |||
955e49e172 | |||
c58a3465ae | |||
![]() |
6f732e71a4 |
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -1,33 +0,0 @@
|
||||
Name: Build and Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
releases-matrix:
|
||||
name: Build and Release
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
goos: [linux, windows, darwin]
|
||||
goarch: ["386", amd64, arm64]
|
||||
exclude:
|
||||
- goarch: "386"
|
||||
goos: darwin
|
||||
- goarch: arm64
|
||||
goos: windows
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: wangyoucao577/go-release-action@v1.35
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
goos: ${{ matrix.goos }}
|
||||
goarch: ${{ matrix.goarch }}
|
||||
goversion: "https://dl.google.com/go/go1.19.5.linux-amd64.tar.gz"
|
||||
project_path: "./cmd/HellPot"
|
||||
binary_name: "HellPot"
|
||||
extra_files: LICENSE README.md
|
||||
build_flags: -trimpath
|
||||
pre_command: export CGO_ENABLED=0
|
||||
ldflags: -s -w
|
6
.github/workflows/go.yml
vendored
6
.github/workflows/go.yml
vendored
@ -2,9 +2,9 @@ name: Vibe Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master, development ]
|
||||
branches: [ main, development ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -14,7 +14,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version: 1.21
|
||||
- name: go vet -v ./...
|
||||
run: go vet -v ./...
|
||||
- name: gosec ./...
|
||||
|
@ -111,7 +111,7 @@ In the event of a missing configuration file, HellPot will attempt to place it's
|
||||
|
||||
## Example Web Server Config (nginx)
|
||||
|
||||
```
|
||||
```nginx
|
||||
location '/robots.txt' {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@ -133,7 +133,7 @@ All nonexisting URLs are being reverse proxied to a HellPot instance on localhos
|
||||
* Requests on nonexisting URLs cause a HTTP Error 404, which content is served by HellPot
|
||||
* URLs under the "/.well-known/" suffix are excluded.
|
||||
|
||||
```
|
||||
```apache
|
||||
<VirtualHost yourserver>
|
||||
ErrorDocument 400 "/content/400"
|
||||
ErrorDocument 403 "/content/403"
|
||||
|
4
go.mod
4
go.mod
@ -3,12 +3,12 @@ module github.com/yunginnanet/HellPot
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
git.tcp.direct/kayos/common v0.9.4
|
||||
git.tcp.direct/kayos/common v0.9.6
|
||||
github.com/fasthttp/router v1.4.21
|
||||
github.com/rs/zerolog v1.31.0
|
||||
github.com/spf13/afero v1.10.0
|
||||
github.com/spf13/viper v1.17.0
|
||||
github.com/valyala/fasthttp v1.50.0
|
||||
github.com/valyala/fasthttp v1.51.0
|
||||
golang.org/x/term v0.14.0
|
||||
)
|
||||
|
||||
|
8
go.sum
8
go.sum
@ -36,8 +36,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX
|
||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
git.tcp.direct/kayos/common v0.9.4 h1:UqenO7AWOeDuItziNWQNyoBbWRDPO2GofNoYcTF60lc=
|
||||
git.tcp.direct/kayos/common v0.9.4/go.mod h1:tTqUGj50mpwoQD0Zsdsv6cpDzN9VfjnQMgpDC8aRfms=
|
||||
git.tcp.direct/kayos/common v0.9.6 h1:EITtktxZF/zkzqAhZZxvm6cZpFYoZ0P/gLB9RPatKUY=
|
||||
git.tcp.direct/kayos/common v0.9.6/go.mod h1:8y9b+PN1+ZVaQ/VugD9dkKe+uqhE8jH7a64RyF7h2rM=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||
github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs=
|
||||
@ -193,8 +193,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
|
||||
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
|
||||
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
|
||||
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
|
||||
github.com/valyala/fasthttp v1.50.0 h1:H7fweIlBm0rXLs2q0XbalvJ6r0CUPFWK3/bB4N13e9M=
|
||||
github.com/valyala/fasthttp v1.50.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA=
|
||||
github.com/valyala/fasthttp v1.51.0 h1:8b30A5JlZ6C7AS81RsWjYMQmrZG6feChmgAolCl1SqA=
|
||||
github.com/valyala/fasthttp v1.51.0/go.mod h1:oI2XroL+lI7vdXyYoQk03bXBThfFl2cVdIA3Xl7cH8g=
|
||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
|
Loading…
Reference in New Issue
Block a user