GitXplorerGitXplorer
j

poorclaresarundel-aca

public
0 stars
0 forks
1 issues

Commits

List of commits on branch main.
Verified
6498362d6b5da5ec111e5f33864c5a06af22fda3

fix: query Update FAQs.tsx

jjohnnyreilly committed a month ago
Verified
40dbdcf18b1533659f2f3519c7aadb970b771d2f

feat: remove query

jjohnnyreilly committed a month ago
Verified
d6934888471a2923f4ccc3d28fc347bcdb0fdda4

feat: Update Interviews.tsx

jjohnnyreilly committed a month ago
Verified
8a1c9d0bfb13da021fb9d6d6b4b3da6859a3a62f

feat: video on Update FAQs.tsx

jjohnnyreilly committed a month ago
Verified
19df9259f7d761389f071661c452d35e014c031e

feat: sister gabriel on LADbible

jjohnnyreilly committed a month ago
Verified
bdda911d8c592e04024cece9e5d766f1ae6f5a35

fix: mass

jjohnnyreilly committed 2 months ago

README

The README file for this repository.

Poor Clares Arundel

Build and Deploy

Built with Azure Container Apps and deployed here: https://main-web.blackmeadow-04548954.uksouth.azurecontainerapps.io

Test locally with:

cd node-service/client
yarn install
yarn run dev

What this needs to run in GitHub / Azure

First of all a resource group:

az group create -g rg-poorclaresarundel -l UKSouth

The following secrets were created for deployment to Azure:

  • AZURE_CLIENT_ID
  • AZURE_TENANT_ID
  • AZURE_SUBSCRIPTION_ID

And an associated Enterprise Application was created in Azure Active Directory: https://portal.azure.com/#view/Microsoft_AAD_IAM/ManagedAppMenuBlade/~/Overview/objectId/e8d4b76d-ca09-4670-b3f7-95c65629ff79/appId/fab09edc-4a68-4bd3-ab7c-039c01bf3bfe

They were created using https://github.com/jongio/github-azure-oidc and the following command:

./oidc.sh poorclaresarundel-aca johnnyreilly/poorclaresarundel-aca ./fics.json

We also need a secret for accessing packages from Azure. We're going to be publishing packages to the GitHub container registry. Azure is going to need to be able to access this when we're deploying; so we'll set up a PACKAGES_TOKEN secret. This is a GitHub personal access token with the read:packages scope. Learn more

Secrets for the app

The app also needs a number of secrets created:

  • APPSETTINGS_API_KEY - an API key for Mailgun which will be used to send emails
  • APPSETTINGS_DOMAIN - the domain for the email eg mg.poorclaresarundel.org
  • APPSETTINGS_PRAYER_REQUEST_FROM_EMAIL - who automated emails should come from eg noreply@mg.poorclaresarundel.org
  • APPSETTINGS_PRAYER_REQUEST_RECIPIENT_EMAIL - the email address emails should be sent to

Custom domain

To use custom domains with Azure Container Apps you need to create a certificate:

https://learn.microsoft.com/en-gb/azure/container-apps/custom-domains-certificates

Certificate created with:

sudo openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
  -keyout poorclaresarundel.org.key -out poorclaresarundel.org.crt -subj "/CN=poorclaresarundel.org" \
  -addext "subjectAltName=DNS:poorclaresarundel.org,DNS:www.poorclaresarundel.org,IP:20.49.157.17"
sudo chmod +r poorclaresarundel.org.key
cat poorclaresarundel.org.crt poorclaresarundel.org.key > poorclaresarundel.org.pem

and uploaded to environment in the Azure portal.