-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rosahaj
committed
Jan 6, 2024
1 parent
a485d37
commit ba641d2
Showing
6 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Go workspace file | ||
go.work | ||
|
||
# Keys and certificates | ||
*.pem | ||
|
||
.github | ||
credentials | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
compose.yaml | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ | |
go.work | ||
|
||
*.pem | ||
credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM golang:1.20 as builder | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN go mod download | ||
RUN go build -o /app/ja3proxy | ||
|
||
FROM gcr.io/distroless/cc-debian12 | ||
|
||
COPY --from=builder /app/ja3proxy /app/ja3proxy | ||
ENTRYPOINT ["/app/ja3proxy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
services: | ||
ja3proxy: | ||
image: ghcr.io/LyleMi/ja3proxy:latest | ||
build: . | ||
entrypoint: | ||
[ | ||
"/app/ja3proxy", | ||
"-cert", | ||
"/credentials/cert.pem", | ||
"-key", | ||
"/credentials/key.pem", | ||
"-client", | ||
"360Browser", | ||
"-version", | ||
"7.5" | ||
] | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- ./credentials:/app/credentials |