Browse code

Add HTTPS server with self-signed certificate

Robert Cranston authored on 17/07/2025 18:22:31
Showing 1 changed files
... ...
@@ -5,6 +5,20 @@ Web server and client code to [POST][] camera frames.
5 5
 [`web-post-camera`]: https://git.rcrnstn.net/rcrnstn/web-post-camera
6 6
 [POST]: https://en.wikipedia.org/wiki/POST_(HTTP)
7 7
 
8
+## Usage
9
+
10
+To generate a self-signed certificate and start the server on the default port
11
+and interface, run `make`.
12
+
13
+To only generate the certificate, run `make cert.pem`.
14
+
15
+To start the server, run `./serve.py [port [host]]`.
16
+
17
+The defaults are:
18
+
19
+-   `port`: `8000`
20
+-   `host`: `""` (bind to all interfaces)
21
+
8 22
 ## License
9 23
 
10 24
 Licensed under the [ISC License][] unless otherwise noted, see the
Browse code

Add license

Robert Cranston authored on 16/07/2025 08:44:46
Showing 1 changed files
... ...
@@ -4,3 +4,11 @@ Web server and client code to [POST][] camera frames.
4 4
 
5 5
 [`web-post-camera`]: https://git.rcrnstn.net/rcrnstn/web-post-camera
6 6
 [POST]: https://en.wikipedia.org/wiki/POST_(HTTP)
7
+
8
+## License
9
+
10
+Licensed under the [ISC License][] unless otherwise noted, see the
11
+[`LICENSE`][] file.
12
+
13
+[ISC License]: https://choosealicense.com/licenses/isc
14
+[`LICENSE`]: LICENSE
Browse code

Add readme

Robert Cranston authored on 16/07/2025 08:44:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,6 @@
1
+# [`web-post-camera`][]
2
+
3
+Web server and client code to [POST][] camera frames.
4
+
5
+[`web-post-camera`]: https://git.rcrnstn.net/rcrnstn/web-post-camera
6
+[POST]: https://en.wikipedia.org/wiki/POST_(HTTP)