github.com/simpleiot/simpleiot@v0.18.3/test/README.md (about)

     1  # Testing
     2  
     3  This directory contains misc testing scripts, tools, etc.
     4  
     5  ## Running Caddy on development machine
     6  
     7  This can be used to test TLS support for various things like wss:// upstream
     8  URIs, etc.
     9  
    10  - configure one SIOT instance (the upstream) to run on port 8081
    11  - `cd <this directory>`
    12  - install caddy and mkcert (Arch has packages for both)
    13  - `mkcert -install`
    14  - `mkcert siottest.com`
    15  - sudo vi /etc/hosts
    16    - `127.0.0.1 siottest.com`
    17  - `sudo caddy run -watch`
    18  - start another SIOT instance (the downstream) and configure upstream with URL
    19    set to wss://siottest.com -- it will not connect to SIOT instance running on
    20    port 8081.