Commit cf97bf0
committed
server-ssl.js
add S_SSL.respondWithContent
add S_SSL.respondWithNotFound
add S_SSL.respondWithServerError
Adds some helpers so you can use to easily respond to api requests
keep in mind you can remove everything inside HTTPS_SERVER and do whatever you like, this doesn't have to be a "web server"
fixes a bug that meant error pages didn't have the correct error code
/root
│
├── /error
│ ├── 404.html
│ └── 500.html
│
├── /ssl
│ ├── /openssl
│ ├── /module
│ │ ├── /crypt
│ │ ├── /jose
│ │ └── lets-encrypt-acme-client.js
│ │
│ ├── acmeKeys
│ ├── private-key.pem
│ └── certificate.pem
│ └── ssl.js
│
├── /website
│ └── index.html <---- Your website goes here
│
├── node.exe
├── server-ssl.js <--- server config
└── start-windows.bat1 parent aabef1f commit cf97bf0
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
83 | 97 | | |
84 | 98 | | |
85 | 99 | | |
| |||
0 commit comments