Skip to content

Commit

Permalink
Merge pull request #10 from kenriortega/development
Browse files Browse the repository at this point in the history
refactor: rename typos on filename.yaml
  • Loading branch information
kenriortega authored Aug 12, 2021
2 parents 2046d68 + 76bc6d5 commit bda1cbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ make compile
-backends string
Load balanced backends, use commas to separate
-configFile string
Only config filename.yaml default gema.yaml (default "ngonx.yaml")
Only config filename.yaml default ngonx.yaml (default "ngonx.yaml")
-configPath string
Config path only not filename.yaml (default "pwd")
-genkey
Expand Down Expand Up @@ -107,7 +107,7 @@ certbot certonly \
--register-unsafely-without-email
```

Then configure our `goproxy.yaml` and add the ssl files generated by `certbot`
Then configure our `ngonx.yaml` and add the ssl files generated by `certbot`

```yaml
# For SSL static server
Expand Down Expand Up @@ -138,5 +138,5 @@ BenchMarking
------------

```bash
ab -c 1000 -n 10000 http://localhost:5000/health
ab -c 1000 -n 10000 http://localhost:<proxyPort>/health
```
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ func init() {
flag.BoolVar(&displayVersion, "version", displayVersion, "Display version and exit")
flag.BoolVar(&setup, "setup", setup, "Create yaml file configuration")
flag.StringVar(&pathSettingsFile, "configPath", pathSettingsFile, "Config path only not filename.yaml")
flag.StringVar(&settingsFile, "configFile", settingsFile, "Only config filename.yaml default gema.yaml")
flag.StringVar(&settingsFile, "configFile", settingsFile, "Only config filename.yaml default ngonx.yaml")
flag.StringVar(&service, "type", service, "Main Service default is proxy")
flag.IntVar(&portProxy, "proxyPort", portProxy, "Port to serve to run proxy")
flag.BoolVar(&generateApiKey, "genkey", generateApiKey, "Action for generate hash for protected routes")
flag.StringVar(&prevKey, "prevkey", prevKey, "Action for save a previous hash for protected routes to validate JWT")
flag.StringVar(&serverList, "backends", serverList, "Load balanced backends, use commas to separate")
flag.IntVar(&portLB, "lbPort", portLB, "Port to serve to run load balancing")
flag.IntVar(&portLB, "lbPort", portLB, "Port to serve to run load balancing default 3030")
flag.Parse()

numcpu := runtime.NumCPU()
Expand Down

0 comments on commit bda1cbd

Please sign in to comment.