index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-02-08 21:58:44.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-02-08 21:58:44.0 +00:00:00
commit
68876243657f6ae55fccd52bb72c91365834b5d9 [patch]
tree
b8ecfffb5d2180860d1906755c73037d53061980
parent
8733d2aac2085b416d4f72327953673943a3bc4c
download
68876243657f6ae55fccd52bb72c91365834b5d9.tar.gz

docs: remove whitespace description for cors option



Diff

 README.md     | 2 +-
 src/config.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index dbe304d..d8e2a73 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ Server can be configured either via environment variables or their equivalent co
| `SERVER_TLS_PKCS12_PASSWD`  | A specified password to decrypt the private key.                                                                                                                                                                                                                                                     | Default empty                                                                                                                   |
| `SERVER_TLS_REDIRECT_FROM`  | Host port for redirecting HTTP requests to HTTPS. This option enables the HTTP redirect feature                                                                                                                                                                                                      | Default empty (disabled)                                                                                                        |
| `SERVER_TLS_REDIRECT_HOST`  | Host name of HTTPS site for redirecting HTTP requests to.                                                                                                                                                                                                                                            | Default host address                                                                                                            |
| `SERVER_CORS_ALLOW_ORIGINS` | Specify a CORS list of allowed origin hosts separated by comas with no whitespaces. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host. See [Iron CORS crate]https://docs.rs/iron-cors/0.8.0/iron_cors/#mode-1-whitelist.                                         | Default empty (which means CORS is disabled)                                                                                    |
| `SERVER_CORS_ALLOW_ORIGINS` | Specify a CORS list of allowed origin hosts separated by comas. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host. See [Iron CORS crate]https://docs.rs/iron-cors/0.8.0/iron_cors/#mode-1-whitelist.                                         | Default empty (which means CORS is disabled)                                                                                    |

### Command-line arguments

diff --git a/src/config.rs b/src/config.rs
index 306cb30..7c69457 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -79,6 +79,6 @@ pub struct Options {
        default_value = "",
        env = "SERVER_CORS_ALLOW_ORIGINS"
    )]
    /// Specify a CORS list of allowed origin hosts separated by comas with no whitespaces. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host.
    /// Specify a CORS list of allowed origin hosts separated by comas. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host.
    pub cors_allow_origins: String,
}