-
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.
configures database and table names for db status manager; enables st…
…atus credential retrieval for all status managers
- Loading branch information
Showing
6 changed files
with
70 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,10 @@ STATUS_CRED_SITE_ORIGIN=https://credentials.example.edu | |
CRED_STATUS_DB_URL=mongodb+srv://user:[email protected]?retryWrites=false | ||
CRED_STATUS_DB_HOST=domain.mongodb.net # ignored if CRED_STATUS_DB_URL is configured | ||
CRED_STATUS_DB_PORT=27017 # ignored if CRED_STATUS_DB_URL is configured | ||
CRED_STATUS_DB_USER=user # ignored if CRED_STATUS_DB_URL is configured | ||
CRED_STATUS_DB_PASS=pass # ignored if CRED_STATUS_DB_URL is configured | ||
CRED_STATUS_DB_USER=testuser # ignored if CRED_STATUS_DB_URL is configured | ||
CRED_STATUS_DB_PASS=testpass # ignored if CRED_STATUS_DB_URL is configured | ||
CRED_STATUS_DB_NAME= | ||
STATUS_CRED_TABLE_NAME= | ||
CONFIG_TABLE_NAME= | ||
EVENT_TABLE_NAME= | ||
CRED_EVENT_TABLE_NAME= |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { build } from './src/app.js' | ||
import { getConfig, setConfig } from "./src/config.js"; | ||
import http from "http" | ||
import { getConfig, setConfig } from './src/config.js'; | ||
import http from 'http'; | ||
|
||
const run = async () => { | ||
await setConfig() | ||
const { port, enableHttpsForDev } = getConfig(); | ||
const { port } = getConfig(); | ||
const app = await build(); | ||
http.createServer(app).listen(port, () => console.log(`Server running on port ${port}`)) | ||
http.createServer(app).listen(port, () => console.log(`Server running on port ${port}`)); | ||
}; | ||
|
||
run(); | ||
run(); |
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