feat(proxy-go): Initialize project structure and dependencies

Add .gitignore, go.mod, and readme.md files to set up the project structure and dependencies.
This commit is contained in:
wood chen 2024-10-29 23:02:08 +08:00
parent 6762c822ab
commit 96068e2dfe
3 changed files with 42 additions and 0 deletions

23
.gitignore vendored Normal file
View File

@ -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

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module proxy-go
go 1.23.1

16
readme.md Normal file
View File

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