From 5ad27dc4eb09f44601da8cf3ca11f0063afc54cb Mon Sep 17 00:00:00 2001 From: Mev Lyshkin Date: Wed, 21 Apr 2021 18:35:58 +0200 Subject: [PATCH] Add README --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..efe72e3 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# lwa_simple_server + +Simple server made with hosting locally webgl games in mind. + +It makes testing Unity webgl games easy, even allows connecting with different domains(less CORS issues during tests). + +## It is NOT meant to use in production environment + +To start run it in folder that should be root folder of hosted site: + +```bash +cd desired/folder +lwa_simple_server +``` + +After first start of the program in configs folder will be created `lwa_simple_server` directory with `lwa_simple_server.toml` in it with config values: + +```toml +folder_to_host = '/example/path/TestProject' +bind_address = 'localhost:8000' +private_key_file = 'key.pem' +certificate_chain_file = 'cert.pem' +use_ssl = false +``` + +If you would like to use OpenSSL create key with command below and pass paths to generated files in config above in order to use it: + +```bash +openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -days 365 -subj '/CN=localhost' +```