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" + } +} +```