https://github.com/oirik/gohan
http (https) server for both static files and proxy, written by golang.
https://github.com/oirik/gohan
go golang http-proxy http-server https-proxy https-server web-server webserver
Last synced: 2 months ago
JSON representation
http (https) server for both static files and proxy, written by golang.
- Host: GitHub
- URL: https://github.com/oirik/gohan
- Owner: oirik
- License: apache-2.0
- Created: 2018-10-04T01:05:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T11:50:19.000Z (over 7 years ago)
- Last Synced: 2024-06-20T14:26:54.718Z (almost 2 years ago)
- Topics: go, golang, http-proxy, http-server, https-proxy, https-server, web-server, webserver
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gohan
[](https://travis-ci.org/oirik/gohan)
[](https://github.com/oirik/gohan/releases)
[](LICENSE)
http (https) server for both static files and proxy, written by golang.
## Install
```
$ go get github.com/oirik/gohan
```
Or download binaries from [github releases](https://github.com/oirik/gohan/releases)
## Usage
Execute simply. gohan listens at 8080 and response from current directory.
```
$ gohan
```
Or check options for details.
```
$ gohan -h
Usage of gohan:
-certFile string
SSL cert file path (default "cert.pem")
-keyFile string
SSL key file path (default "key.pem")
-path string
static files directory (default ".")
-port int
http server port number (default 8080)
-proxy string
reverse proxy destination host. ex) localhost:8080
-ssl
use SSL
```