Compare commits
2 commits
85614ae9b3
...
4a584cde2d
Author | SHA1 | Date | |
---|---|---|---|
4a584cde2d | |||
7ef8ac23bd |
4 changed files with 410 additions and 434 deletions
834
package-lock.json
generated
834
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -366,6 +366,12 @@ Sends local message to server console.
|
||||||
|
|
||||||
This object contains properties from _config.json_ file.
|
This object contains properties from _config.json_ file.
|
||||||
|
|
||||||
|
### _config.wwwroot_
|
||||||
|
|
||||||
|
<small>_Added in SVR.JS 4.2.0_</small>
|
||||||
|
|
||||||
|
A normalized path to the webroot. In SVR.JS versions prior to 4.2.0, _config.wwwroot_ refers to the _webroot_ property from _config.json_ file.
|
||||||
|
|
||||||
### _config.getCustomHeaders()_
|
### _config.getCustomHeaders()_
|
||||||
|
|
||||||
<small>_Added in SVR.JS 4.0.0_</small>
|
<small>_Added in SVR.JS 4.0.0_</small>
|
||||||
|
|
|
@ -10,4 +10,6 @@ title: CLI options
|
||||||
- _--secure_ - runs HTTPS server
|
- _--secure_ - runs HTTPS server
|
||||||
- _--disable-mods_ - disables mods (safe mode)
|
- _--disable-mods_ - disables mods (safe mode)
|
||||||
- _--single-threaded_ - runs single-threaded
|
- _--single-threaded_ - runs single-threaded
|
||||||
|
- _--stdout-notty_ - enable `stdout` even when `stdout` is not a TTY. May decrease the performace. (SVR.JS 4.2.0 or newer)
|
||||||
|
- _--no-save-config_ - don't save configuration file (SVR.JS 4.2.0 or newer)
|
||||||
- _-v_ or _--version_ - displays server version
|
- _-v_ or _--version_ - displays server version
|
||||||
|
|
|
@ -187,6 +187,8 @@ The _config.json_ file contains various properties that you can customize to con
|
||||||
- Option to allow double slashes in the URL. If set to `false`, double slashes are removed by URL sanitizer. Double slashes at the beginning of path (e.g. in _//config.json_) are always removed. Doesn't affect URL rewriting, in that case please configure the _allowDoubleSlashes_ property in the URL rewriting rule. It may allow some configuration file leaks, if web root is in the SVR.JS installation directory.
|
- Option to allow double slashes in the URL. If set to `false`, double slashes are removed by URL sanitizer. Double slashes at the beginning of path (e.g. in _//config.json_) are always removed. Doesn't affect URL rewriting, in that case please configure the _allowDoubleSlashes_ property in the URL rewriting rule. It may allow some configuration file leaks, if web root is in the SVR.JS installation directory.
|
||||||
- _optOutOfStatisticsServer_ (Boolean, SVR.JS 3.15.6 or newer)
|
- _optOutOfStatisticsServer_ (Boolean, SVR.JS 3.15.6 or newer)
|
||||||
- Option to opt out of sending data to the statistics server. You can use this option to increase the privacy of SVR.JS.
|
- Option to opt out of sending data to the statistics server. You can use this option to increase the privacy of SVR.JS.
|
||||||
|
- _disableConfigurationSaving_ (Boolean, SVR.JS 4.2.0 or newer)
|
||||||
|
- Option to enable `stdout` even when the `stdout` is not a TTY. Setting this option to `true` may decrease the performace of SVR.JS.
|
||||||
|
|
||||||
## Deprecated and Removed Properties
|
## Deprecated and Removed Properties
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue