-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of github.com:FusionAuth/fusionauth-site i…
…nto development
- Loading branch information
Showing
13 changed files
with
3,164 additions
and
729 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: publish-site-redirect-rules-to-s3 | ||
|
||
env: | ||
AWS_ACCOUNT_ID: '172023253951' | ||
AWS_REGION: us-east-1 | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
paths: | ||
- 'src/lambdas/fusionauth-site-origin-handler/data/redirects.json' | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
publish-to-s3: | ||
runs-on: fusionauth-standard | ||
container: 752443094709.dkr.ecr.us-west-2.amazonaws.com/gha-runner-ubuntu-22.04:bootstrap-05 | ||
steps: | ||
|
||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: set aws credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-chaining: true | ||
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/github-actions | ||
role-session-name: github-actions | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
- name: upload file to s3 | ||
working-directory: src/lambdas/fusionauth-site-origin-handler/data | ||
run: | | ||
aws s3 cp ./redirects.json s3://fusionauth-dev-us-east-1-artifacts/lambda/fusionauth-site-origin-handler/redirects.json |
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,4 +1,5 @@ | ||
.DS_Store | ||
.env* | ||
.jekyll-metadata | ||
.jekyll-cache | ||
.sass-cache | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
661 changes: 0 additions & 661 deletions
661
src/cloudfront/lambda-request-handler/src/fusionauth-website-lambda-request-handler.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# fusionauth-site-origin-handler | ||
|
||
This is a Lambda@Edge function that handles redirects for fusionauth.dev. | ||
|
||
## Localdev | ||
|
||
You'll need Node 18 or later installed. | ||
|
||
From this directory, install the dependencies. | ||
``` | ||
npm install | ||
``` | ||
|
||
Run the tests with AWS credentials that have permissions to read from the `fusionauth-dev-us-east-1-artifacts` bucket. | ||
``` | ||
AWS_PROFILE=fusionauth-dev npm test | ||
``` |
566 changes: 566 additions & 0 deletions
566
src/lambdas/fusionauth-site-origin-handler/data/redirects.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.