develop #1

Merged
deblan merged 5 commits from develop into main 2023-06-06 14:10:45 +02:00
2 changed files with 12 additions and 3 deletions
Showing only changes of commit 2c0904ff1a - Show all commits

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM debian:stable-slim
RUN apt-get update && apt-get install ca-certificates -y
COPY ./capture /usr/bin/capture
WORKDIR /app
ENTRYPOINT ["/usr/bin/capture"]

View file

@ -30,9 +30,9 @@ var dashboardHTML []byte
func main() {
cfg := ReadConfig()
fmt.Printf("Target is %s", cfg.TargetURL)
fmt.Printf("\nListening on http://localhost:%s", cfg.ProxyPort)
fmt.Printf("\nDashboard on http://localhost:%s", cfg.DashboardPort)
fmt.Printf("Target is %s\n", cfg.TargetURL)
fmt.Printf("Listening on http://127.0.0.1:%s\n", cfg.ProxyPort)
fmt.Printf("Dashboard on http://127.0.0.1:%s\n", cfg.DashboardPort)
fmt.Println()
srv := NewCaptureService(cfg.MaxCaptures)