@@ -73,7 +73,7 @@ Config at least must contain following values:
73
73
74
74
``` json
75
75
{
76
- "host" : " 1.0.13 .0" ,
76
+ "host" : " 1.0.14 .0" ,
77
77
"port" : 8004 ,
78
78
"key" : " ./ssl/key.pem" ,
79
79
"cert" : " ./ssl/cert.pem"
@@ -120,8 +120,8 @@ cluster('example/primary.js', 'example/worker.js')({ config, logFile })
120
120
Logs in the file have following format:
121
121
122
122
```
123
- 2024-11-09T15:21:03.885Z - worker (pid:35119) - HTTP/2 server running at https://1.0.13 .0:8004
124
- 2024-11-09T15:21:03.885Z - worker (pid:35120) - HTTP/2 server running at https://1.0.13 .0:8004
123
+ 2024-11-09T15:21:03.885Z - worker (pid:35119) - HTTP/2 server running at https://1.0.14 .0:8004
124
+ 2024-11-09T15:21:03.885Z - worker (pid:35120) - HTTP/2 server running at https://1.0.14 .0:8004
125
125
```
126
126
127
127
Use ` global.log() ` function to write logs to file. By default, this function writes to console.
@@ -294,7 +294,7 @@ const handler = ({
294
294
295
295
const corsOptions = {
296
296
cacheControl: ' cache, public , max- age= 432000 ' ,
297
- allowedOrigins: [ ' 1.0 .13 .220 ' , ' 1.0 .13 .1 : 8004 ' ], // can also be just a string ' * ' (default)
297
+ allowedOrigins: [ ' 1.0 .14 .220 ' , ' 1.0 .14 .1 : 8004 ' ], // can also be just a string ' * ' (default)
298
298
allowedMethods: [ ' GET ' , ' OPTIONS ' ], // it' s default
299
299
allowedHeaders: [ ' Content-Type' , ' Authorization' ], // can also be just a string '*' (default)
300
300
allowedCredentials: true ,
@@ -416,7 +416,7 @@ function staticMapper(requestUrl) {
416
416
const options = {
417
417
useGzip: true ,
418
418
cacheControl: ' cache, public, max-age=432000' ,
419
- allowedOrigins: [ ' 1.0.13 .220' , ' 1.0.13 .1:8004' ], // can also be just a string '*' (default)
419
+ allowedOrigins: [ ' 1.0.14 .220' , ' 1.0.14 .1:8004' ], // can also be just a string '*' (default)
420
420
allowedMethods: [ ' GET' , ' OPTIONS' ], // it's default
421
421
allowedHeaders: [ ' Content-Type' , ' Authorization' ], // can also be just a string '*' (default)
422
422
allowedCredentials: true ,
@@ -502,7 +502,7 @@ If you specify `<cli>` instead of values in your config, you will be asked to in
502
502
// local.env
503
503
504
504
{
505
- "host" : " 1.0.13 .0" ,
505
+ "host" : " 1.0.14 .0" ,
506
506
"port" : 8004 ,
507
507
"key" : " ./example/ssl/key.pem" ,
508
508
"cert" : " ./example/ssl/cert.pem" ,
0 commit comments