https://github.com/ymzuiku/gonginx
Only have static server and proxy
https://github.com/ymzuiku/gonginx
golang server static-server
Last synced: about 1 month ago
JSON representation
Only have static server and proxy
- Host: GitHub
- URL: https://github.com/ymzuiku/gonginx
- Owner: ymzuiku
- Created: 2018-09-22T10:48:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-24T13:45:21.000Z (almost 8 years ago)
- Last Synced: 2026-01-02T00:25:54.491Z (6 months ago)
- Topics: golang, server, static-server
- Language: Go
- Size: 7.96 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Only have static and proxy
## Golang Install
```
go get github.com/ymzuiku/gonginx
```
## Start
start server and load ./static/*
```sh
$ cd project
$ gonginx ./static 4001
```
start server and load ./static/*, and proxy to http://localhost:5000
```sh
$ gonginx ./static 4001 5000
```
## If you no have golang, you can downdown release
osx:
```
curl -o /usr/local/bin/gonginx https://raw.githubusercontent.com/ymzuiku/gonginx/master/bin/osx/gonginx
chmod 0700 /usr/local/bin/gonginx
```
linux:
```
wget -c -O /usr/local/bin/gonginx https://raw.githubusercontent.com/ymzuiku/gonginx/master/bin/linux/gonginx
chmod 0700 /usr/local/bin/gonginx
```
and use:
```sh
gonginx ./static 4001
```