@reldens/server-utils 0.35.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,6 @@ A Node.js server toolkit providing secure application server creation, file hand
|
|
|
9
9
|
### AppServerFactory
|
|
10
10
|
- Complete Express.js server configuration with modular security
|
|
11
11
|
- HTTPS/HTTP server creation with SSL certificate management
|
|
12
|
-
- HTTP/2 support via spdy with automatic HTTP/1.1 fallback
|
|
13
12
|
- Optimized static asset caching for CSS, JS, fonts, and images
|
|
14
13
|
- SNI (Server Name Indication) support for multi-domain hosting
|
|
15
14
|
- Virtual host management with domain mapping
|
|
@@ -101,14 +100,13 @@ if(serverResult){
|
|
|
101
100
|
}
|
|
102
101
|
```
|
|
103
102
|
|
|
104
|
-
###
|
|
103
|
+
### HTTPS Server with Optimized Caching
|
|
105
104
|
|
|
106
105
|
```javascript
|
|
107
106
|
let appServerFactory = new AppServerFactory();
|
|
108
107
|
let serverResult = appServerFactory.createAppServer({
|
|
109
108
|
port: 443,
|
|
110
109
|
useHttps: true,
|
|
111
|
-
useHttp2: true,
|
|
112
110
|
keyPath: '/ssl/server.key',
|
|
113
111
|
certPath: '/ssl/server.crt',
|
|
114
112
|
autoListen: true
|
|
@@ -131,7 +129,6 @@ appServerFactory.cacheConfig = {
|
|
|
131
129
|
};
|
|
132
130
|
let serverResult = appServerFactory.createAppServer({
|
|
133
131
|
useHttps: true,
|
|
134
|
-
useHttp2: true
|
|
135
132
|
});
|
|
136
133
|
```
|
|
137
134
|
|
|
@@ -229,7 +226,6 @@ appServerFactory.addDomain({
|
|
|
229
226
|
|
|
230
227
|
let serverResult = appServerFactory.createAppServer({
|
|
231
228
|
useHttps: true,
|
|
232
|
-
useHttp2: true,
|
|
233
229
|
useVirtualHosts: true,
|
|
234
230
|
keyPath: '/ssl/default.key',
|
|
235
231
|
certPath: '/ssl/default.crt',
|
|
@@ -365,9 +361,6 @@ Configurable rate limiting with development mode detection for appropriate thres
|
|
|
365
361
|
### HTTPS Support
|
|
366
362
|
Full SSL/TLS support with SNI for multi-domain hosting and automatic certificate management.
|
|
367
363
|
|
|
368
|
-
### HTTP/2 Support
|
|
369
|
-
HTTP/2 support via spdy with multiplexing for improved performance and automatic HTTP/1.1 fallback for older clients.
|
|
370
|
-
|
|
371
364
|
### Input Validation
|
|
372
365
|
Built-in validators for common input types including email, username, strong passwords, alphanumeric strings, and IP addresses.
|
|
373
366
|
|