From 96068e2dfe3c781eafb04eb5f29b9613054af8d9 Mon Sep 17 00:00:00 2001 From: wood chen Date: Tue, 29 Oct 2024 23:02:08 +0800 Subject: [PATCH] feat(proxy-go): Initialize project structure and dependencies Add .gitignore, go.mod, and readme.md files to set up the project structure and dependencies. --- .gitignore | 23 +++++++++++++++++++++++ go.mod | 3 +++ readme.md | 16 ++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .gitignore create mode 100644 go.mod create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4e6d90 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib +proxy-go +proxy-go-* + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +vendor/ + +# IDE specific files +.idea/ +.vscode/ +*.swp +*.swo diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..8548eea --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module proxy-go + +go 1.23.1 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..455f2ba --- /dev/null +++ b/readme.md @@ -0,0 +1,16 @@ +# Proxy-Go + +A simple reverse proxy server written in Go. + +## Configuration + +Create a `config.json` file in the `data` directory: + +```json +{ + "MAP":{ + "/path1": "https://path1.com/path/path/path", + "/path2": "https://path2.com" + } +} +```