-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sl): enhance site launch process to utilise DNS indirection layer (
#920) * Add new configuration variables for DNS indirection layer * Introduce new database column for indirection domain * Insert intermediate step of creating indirection domain * Switch env vars to constants instead * Remove indirection domain database column
- Loading branch information
Showing
8 changed files
with
169 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -57,5 +57,7 @@ export const ISOMER_ADMIN_REPOS = [ | |
export const INACTIVE_USER_THRESHOLD_DAYS = 60 | ||
export const GITHUB_ORG_REPOS_ENDPOINT = `https://api.github.com/orgs/${ISOMER_GITHUB_ORG_NAME}/repos` | ||
export const REDIRECTION_SERVER_IP = config.get("redirectionServer.elasticIp") | ||
export const DNS_INDIRECTION_DOMAIN = "hostedon.isomer.gov.sg" | ||
export const DNS_INDIRECTION_REPO = "isomer-indirection" | ||
export const ISOMER_ADMIN_EMAIL = "[email protected]" | ||
export const ISOMER_SUPPORT_EMAIL = "[email protected]" |
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,11 @@ | ||
import { BaseIsomerError } from "./BaseError" | ||
|
||
export default class GitHubApiError extends BaseIsomerError { | ||
constructor(message: string) { | ||
super({ | ||
status: 500, | ||
code: "GitHubApiError", | ||
message, | ||
}) | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ const mockLaunch: SiteLaunchMessage = { | |
primaryDomainTarget: "myapp.example.com", | ||
domainValidationSource: "example.com", | ||
domainValidationTarget: "myapp.example.com", | ||
indirectionDomain: "example.hostedon.example.com", | ||
requestorEmail: "[email protected]", | ||
agencyEmail: "[email protected]", | ||
githubRedirectionUrl: "https://github.com/my-repo", | ||
|
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