Repository
Current version released
a year ago
Dependencies
Silu
Silu is a simple HTTP/HTTPS tunnel and proxy server of Deno.
Installation
Make sure you have Deno runtime installed. Then, install Silu using the following command:
deno install --allow-net --allow-read --allow-write --global https://deno.land/x/silu/main.tsOptions
--timeout, -tTimeout for each TCP connection.--config, -cConfiguration file path.--bind, -bBind address.
HTTP Options
--http.portHTTP port.
HTTPS Options
--https.portHTTPS port.--https.crtCertificate file path.--https.keyCertificate key path.
Auth Options
--auth.username, --auAuthentication username.--auth.password, --apAuthentication password.--auth.type, --atAuthentication type.
Log Options
--log.mode, --lmEnable log with mode.--log.level, --llLog level.--log.dir, --ldLog directory.--log.rotate, --lrCut logs by day.--log.max_bytes, --lmbThe max bytes for a single log file.--log.max_backup_count, --lmcThe max number of log files to keep.- Detail : https://github.com/deno-library/logger
For more information and options, use the --help option to see the help
message.
Examples
Start an HTTP server:
silu --http.port 8080Start an HTTPS server:
silu --https.port 8443 --https.crt cert.pem --https.key key.pemEnable authentication:
silu --http.port 8080 --auth.type basic --auth.username admin --auth.password 123456Contributing
Contributions and issue reporting are welcome!
License
This project is licensed under the MIT License.