-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
converts Status List 2021 to Bitstring Status List; fixes tests; adds…
… back ENABLE_HTTPS_FOR_DEV environment variable
- Loading branch information
Showing
16 changed files
with
315 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDcjCCAloCCQC5dkGYdTI6MjANBgkqhkiG9w0BAQsFADB7MQswCQYDVQQGEwJD | ||
QTEQMA4GA1UECAwHT05UQVJJTzERMA8GA1UEBwwIQU5DQVNURVIxDDAKBgNVBAoM | ||
A0RDQzESMBAGA1UEAwwJbG9jYWxob3N0MSUwIwYJKoZIhvcNAQkBFhZqYy5jaGFy | ||
dHJhbmRAZ21haWwuY29tMB4XDTIzMDEzMTE1NDcwMFoXDTIzMDMwMjE1NDcwMFow | ||
ezELMAkGA1UEBhMCQ0ExEDAOBgNVBAgMB09OVEFSSU8xETAPBgNVBAcMCEFOQ0FT | ||
VEVSMQwwCgYDVQQKDANEQ0MxEjAQBgNVBAMMCWxvY2FsaG9zdDElMCMGCSqGSIb3 | ||
DQEJARYWamMuY2hhcnRyYW5kQGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD | ||
ggEPADCCAQoCggEBALswlM6FgU6gPGIFhO0ohyRSJePtDpSLR0wnjyZobVzZjtd8 | ||
5HqbawRfE1zAPAyVmPZ1cUMPKc8owiF1PGdMP/q7Dsk9adUKkEipAHni84fOYgFk | ||
+FxQwV58kjz5zqrCCnYQlLTTk2NtS/wTKl+5k3yXGrYlL41f7vMiWrEFTbvujWAz | ||
Qa0GbcXdckRM3xt8HJb0iMAvOwAMi+gCDPXe3hqwu5AyzaN9tC3JwHLdVBwWtsGv | ||
IlM49SYDnvOmEGxZDTLemhPCypkFWE/A+0VSDjMxs7BgtGfYxcV2grU7lE3bJOxT | ||
fhzCtqtxaHkGSfr0MY+OplEED0foyRchzCyq+8sCAwEAATANBgkqhkiG9w0BAQsF | ||
AAOCAQEAof2Yu6M74yyX8HIampxWE+NIHdRVoYksUYqfjIwEsdWkMzTvcLve5mQn | ||
1PhlYk/5X8aFEMMwMrSZb5EFqV+fOktRymtrUDyYYdopAyct6OWutu4cih47wRdL | ||
qd4dDale4OYJemD7m4VgXa7j0zcJfby8jqZPM+N3iNwLCDGWaGj6CsZDr0BR6xh0 | ||
YyhyZBVCseTLfZGyxmCTHnYg4/cGBoKm/I4CIpXmuLbDMv1n/+xlK9oVn84UvqkY | ||
oydsBrg4gsxHVNMBK8/ftZzDOF5ZVHHNHx0Z37oRE18Al4+1vFzlzPzpKCG9U3Ss | ||
u2NnWz9AjicouE3ikIDINMFctaywEw== | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC7MJTOhYFOoDxi | ||
BYTtKIckUiXj7Q6Ui0dMJ48maG1c2Y7XfOR6m2sEXxNcwDwMlZj2dXFDDynPKMIh | ||
dTxnTD/6uw7JPWnVCpBIqQB54vOHzmIBZPhcUMFefJI8+c6qwgp2EJS005NjbUv8 | ||
EypfuZN8lxq2JS+NX+7zIlqxBU277o1gM0GtBm3F3XJET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zPEi2NfA1dFLXo9VWWvCU6xh48c6QKBgQCb | ||
VqOswA2osmL67xzsUlDPU+XIYt7V+VezCrSVTeBLvSUAfjfbAg1DvlWTEvrHHOgo | ||
q+5OD4ZP3koW2OXaa4pENmmaciAcOoOu4fcbd//Vrfp9eJuCjPBTKtkhXcG3yBdH | ||
//zwlMorVdLC/RYr1hkXSijB0E6zTnYYEUvknYEETwKBgGQljAqFvIGpWTij8b6k | ||
pwt0xymlOJjRvjTFyQMIQuJLhBG/ydQJhGQ5zvHQVY7S7CFM2QyheP25eqxETTXp | ||
N5BQ854zBX4nqIe7NrY++ldwQg5FQgtR+8ZBiJQwHc5eo74D8acMu54oPbyig+nD | ||
7L+JYn0WFx31GgoeLSmegA8x | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
import { build } from './src/app.js' | ||
import { getConfig, setConfig } from './src/config.js'; | ||
import { build } from './src/app.js'; | ||
import { getConfig } from './src/config.js'; | ||
import http from 'http'; | ||
import https from 'https'; | ||
import logger from './src/utils/logger.js'; | ||
|
||
const run = async () => { | ||
await setConfig() | ||
const { port } = getConfig(); | ||
const { port, enableHttpsForDev } = getConfig(); | ||
const app = await build(); | ||
http.createServer(app).listen(port, () => console.log(`Server running on port ${port}`)); | ||
|
||
if (enableHttpsForDev) { | ||
https | ||
.createServer( | ||
{ | ||
key: fs.readFileSync('server-dev-only.key'), | ||
cert: fs.readFileSync('server-dev-only.cert') | ||
}, | ||
app | ||
).listen(port, () => logger.info(`Server running on port ${port} with https`)); | ||
} else { | ||
http | ||
.createServer(app).listen(port, () => logger.info(`Server running on port ${port} with http`)); | ||
} | ||
}; | ||
|
||
run(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.