Comments (4)
WAIT until we are ready to release the first public release of the site.
Use the github.io site as "dev" or "staging"
from research-teaching-companion.
We have set up a CloudFront distribution, but have encountered errors with accessing site pages from the landing page. This seems to be due to Hugo's index.html needs that are different from AWS
to Everyone
https://fastfoodcoding.com/recipes/hugo/hosting-hugo-on-aws-s3-cloudfront/
Terry Catapano 12:33 PM
def lambda_handler(event, context):
request = event['Records'][0]['cf']['request']
uri = request['uri']
# If URL ends with a slash, append index.html
if uri.endswith('/'):
request['uri'] += 'index.html'
return request
from research-teaching-companion.
Another issue just encountered - permissions:
from research-teaching-companion.
Working now. The function is actually:
def lambda_handler(event, context):
request = event['Records'][0]['cf']['request']
uri = request['uri']
# If URL ends with a slash, append index.html
if uri.endswith('/'):
request['uri'] += 'index.html'
return request
Also, need to publish a version and use that version's ARN in the Lambda Function Association Viewer Request
in the 'Behaviors" for the distribution in CloudFront, as well as specifying Path Pattern is
* `
Also using IAM Trust Policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"lambda.amazonaws.com",
"edgelambda.amazonaws.com"
]
},
"Action": "sts:AssumeRole"
}
]
}
from research-teaching-companion.
Related Issues (20)
- /img directory not resolving in built site HOT 11
- Links in headings result in table of contents that links to other pages HOT 4
- links to static content with same name but dif extension HOT 4
- move pptx and xlsx and csv and R files to own directories HOT 1
- any static files using REF shortcode cannot be found by hugo server? HOT 1
- pdf/docx that do/don't work HOT 4
- _index.md pages not captured in link fixing campaign HOT 1
- Workflow failed to deploy? HOT 2
- homepage: move image from above buttons to below HOT 5
- NJR: review all pages and make edits as needed HOT 9
- Lan Li - how to navigate the edition video HOT 3
- Final projects Assignment Sheet HOT 6
- 2021-2023-GU4962 Syllabi and Digital-course-syllabi conversion HOT 4
- Images for RTC - adding/changing images to web pages
- Status Update 8.10.2024 HOT 2
- add default for single pages with no title HOT 1
- Resource Lists HOT 1
- Activity Sheets pdfs pulled from Sandbox
- Plus sign in media student projects file folders HOT 5
- File with a + in filename HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from research-teaching-companion.