Skip to content

Commit

Permalink
Fix moved config.example.json
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Aug 13, 2024
1 parent 6ccbe28 commit 5b7922e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can perform unit tests with `go test` or `make test`. Enable verbose logging

## Config

`sshmux` requires a JSON configuration file to start up. By default it will look at `/etc/sshmux/config.json`, but you can also specify a custom configuration by passing `-c path/to/config.json` in the command line arguments. An [example](config.example.json) file is provided.
`sshmux` requires a JSON configuration file to start up. By default it will look at `/etc/sshmux/config.json`, but you can also specify a custom configuration by passing `-c path/to/config.json` in the command line arguments. An [example](etc/config.example.json) file is provided.

The table below shows the available options for `sshmux`:

Expand Down
1 change: 1 addition & 0 deletions etc/config.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"api": "http://127.0.0.1:5000/ssh",
"token": "token",
"recovery-token": "token",
"recovery-server": "172.30.0.101:2222",
"recovery-username": ["recovery", "console", "serial"],
"all-username-nopassword": true,
Expand Down
2 changes: 1 addition & 1 deletion sshmux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func TestSSHClientConnection(t *testing.T) {

initEnv(t, baseDir)
privateKeyPath := filepath.Join(baseDir, "example_rsa")
go sshmuxServer("config.example.json")
go sshmuxServer("etc/config.example.json")

// sanity check
testWithSSHClient(t, sshdServerAddr, "sanity check", false, baseDir, privateKeyPath)
Expand Down

0 comments on commit 5b7922e

Please sign in to comment.