Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger-stats integration + docs. #206

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ Starts the addon server. `options` is an object that contains:
* `port`
* `cacheMaxAge` (in seconds); `cacheMaxAge` means the `Cache-Control` header being set to `max-age=$cacheMaxAge`
* `static`: path to a directory of static files to be served; e.g. `/public`
* `sws`: bool to enable or disable the swagger-stats interfaace (default: `false`).
* `swsConfig`: Object containing swagger-stats configuration as described in the [swagger-stats docs](https://swaggerstats.io/guide/conf.html#options), if `sws` is `true` and `swsConfig` is `Undefined` the interface will be on `/swagger-stats` and login details will be username: `"stremio"` password: `"stremioIsTheBest"`, to specify a different username or password use `USER` and `PASS` envirement variables.

This method is also special in that it will react to certain process arguments, such as:

Expand Down
Loading