Skip to content

Commit

Permalink
improve cli usage, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
o-fl0w committed Nov 23, 2023
1 parent 10ec355 commit d4a0bf8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@ After installation open your endpoint (e.g. `http://localhost:9666`) in a regula
docker run --name=stash-vr -e STASH_GRAPHQL_URL=http://localhost:9999/graphql -e STASH_API_KEY=XXX -p 9666:9666 ofl0w/stash-vr:latest
```

Stash-VR listens on port `9666`, use docker port binding to change local port, e.g. `-p 9000:9666` to listen on port `9000` instead.
Stash-VR listens on port `9666` by default. To change local port, use docker port binding, e.g. `-p 9000:9666`, or set env. `LISTEN_ADDRESS=:9000` to listen on port `9000` instead.

#### Configuration
### Binaries
Download and extract a binary for your platform. Run `stash-vr -h` to display help.

Example: Connect to Stash running on localhost:9999 with api key XXX and set Stash-VR to listen on port 9000:

`stash-vr --STASH_GRAPHQL_URL=http://localhost:9999/graphql --STASH_API_KEY=XXX --LISTEN_ADDRESS=:9000`

### Configuration
* `STASH_GRAPHQL_URL`
* **Required**
* Url to your Stash graphql - something like `http://<stash.host>:<9999>/graphql`.
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

const (
envKeyListenAddress = "LISTEN_ADDR"
envKeyListenAddress = "LISTEN_ADDRESS"
envKeyStashGraphQLUrl = "STASH_GRAPHQL_URL"
envKeyStashApiKey = "STASH_API_KEY"
envKeyFavoriteTag = "FAVORITE_TAG"
Expand Down

0 comments on commit d4a0bf8

Please sign in to comment.