mirror of
https://github.com/halverneus/static-file-server.git
synced 2025-02-05 07:55:29 +00:00
update documentation for cors option
This commit is contained in:
parent
f3f9442821
commit
d55f887d9c
@ -14,6 +14,9 @@ Install from any of the following locations:
|
||||
Default values are shown with the associated environment variable.
|
||||
|
||||
```bash
|
||||
# Enables resource access from any domain.
|
||||
CORS=false
|
||||
|
||||
# Enable debugging for troubleshooting. If set to 'true' this prints extra
|
||||
# information during execution. IMPORTANT NOTE: The configuration summary is
|
||||
# printed to stdout while logs generated during execution are printed to stderr.
|
||||
@ -69,6 +72,7 @@ show-listing: true
|
||||
tls-cert: ""
|
||||
tls-key: ""
|
||||
url-prefix: ""
|
||||
cors: false
|
||||
```
|
||||
|
||||
Example configuration with possible alternative values:
|
||||
|
@ -33,6 +33,10 @@ DEPENDENCIES
|
||||
None... not even libc!
|
||||
|
||||
ENVIRONMENT VARIABLES
|
||||
CORS
|
||||
When set to 'true' it enables resource access from any domain. All responses
|
||||
will include the headers 'Access-Control-Allow-Origin' and 'Access-Control-Allow-Headers'
|
||||
with a wildcard value ('*').
|
||||
DEBUG
|
||||
When set to 'true' enables additional logging, including the
|
||||
configuration used and an access log for each request. IMPORTANT NOTE:
|
||||
@ -94,6 +98,7 @@ CONFIGURATION FILE
|
||||
tls-cert: ""
|
||||
tls-key: ""
|
||||
url-prefix: ""
|
||||
cors: false
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
Example config.yml with possible alternative values:
|
||||
|
Loading…
Reference in New Issue
Block a user