https://github.com/tkmru/goran
simple http server.
https://github.com/tkmru/goran
Last synced: 27 days ago
JSON representation
simple http server.
- Host: GitHub
- URL: https://github.com/tkmru/goran
- Owner: tkmru
- Created: 2017-10-25T03:21:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T14:24:35.000Z (almost 8 years ago)
- Last Synced: 2025-03-27T11:43:44.304Z (7 months ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goran
simple http server.## Installation
```
go get github.com/tkmru/goran
```## Usage
```
$ ./goran -h
Usage:
-a string
address to use (short) (default "127.0.0.1")
-address string
address to use (default "127.0.0.1")
-c string
config path to use (short)
-config string
config path to use
-p uint
port to use (short) (default 8888)
-port uint
port to use (default 8888)
-r string
root directory to use (short) (default "./")
-root string
root directory to use (default "./")
``````
$ cd DOCUMENT_ROOT
$ goran
2017/11/07 23:22:29 Starting Goran HTTP Server
2017/11/07 23:22:29 Listen : http://127.0.0.1:8888
2017/11/07 23:22:29 RootDir: ./
2017/11/07 23:22:38 127.0.0.1:65208 GET /
```### Configuration file
goran is configured with a simple [TOML](https://github.com/toml-lang/toml) file.```
Port = 6000
Addr = "127.0.0.1"
rootDir = "/var/www/hoge"
```## License
MIT License
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) @tkmru