You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If the port number is not provided, it will listen on 443.
42
+
- To redirect the http traffic to https use `app.redirect()`.
43
+
- You can serve static files with `app.serve(path)`.
44
+
45
+
## Why and how it works
46
+
Serving static content on localhost in a trusted SSL connection is not so simple.
47
+
It requires to manually generate and trust certificates, with complicate commands and many manual steps.
48
+
49
+
sserve, serves static content using a locally-trusted certificate, generated with the well-knowed [mkcert](https://github.com/FiloSottile/mkcert) tool.
50
+
51
+
When you install sserve it automatically creates and installs a local CA in the system (and browsers) root store, and generates the certificate for you.
52
+
No configuration is required, just lunch the tool and we take care of everything you need.
53
+
54
+
### Supported root stores
55
+
_The supported root stores are the one supported by mkcert.
56
+
Checkout the updated list [here](https://github.com/FiloSottile/mkcert/blob/master/README.md#supported-root-stores)._
57
+
58
+
**Here there is a handy copy:**
59
+
- macOS system store
60
+
- Windows system store
61
+
- Linux variants that provide either
62
+
-`update-ca-trust` (Fedora, RHEL, CentOS) or
63
+
-`update-ca-certificates` (Ubuntu, Debian) or
64
+
-`trust` (Arch)
65
+
- Firefox (macOS and Linux only)
66
+
- Chrome and Chromium
67
+
- Java (when `JAVA_HOME` is set)
68
+
69
+
70
+
## License
71
+
Is released under [AGPL-3.0 - GNU Affero General Public License v3.0](LICENSE).
72
+
73
+
### Briefly:
74
+
- modification and redistribution allowed for both private and **commercial use**
75
+
- you must **grant patent rigth to the owner and to all the contributors**
76
+
- you must **keep it open source** and distribute under the **same license**
77
+
- changes must be documented
78
+
- include a limitation of liability and it **does not provide any warranty**
79
+
80
+
### Warranty
81
+
THIS TOOL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
82
+
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
83
+
For the full warranty check the [LICENSE](LICENSE).
0 commit comments