Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffbryner/jeffbryner.com
da website
https://github.com/jeffbryner/jeffbryner.com
Last synced: about 2 months ago
JSON representation
da website
- Host: GitHub
- URL: https://github.com/jeffbryner/jeffbryner.com
- Owner: jeffbryner
- License: mpl-2.0
- Created: 2019-07-06T02:12:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T06:35:45.000Z (almost 2 years ago)
- Last Synced: 2024-04-16T03:39:15.083Z (8 months ago)
- Language: Python
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jeffbryner.com
da websiteHosted in aws free tier via cloud magic, no servers and s3 buckets.
If you'd like to do similar:
1) Copy this stuff somewhere (git clone? weird though since you won't be contributing to my homepage)
2) Change all the stuff referencing me to reference you or your site
3) Create an amazon certificate in us-east-1 for your domain (region is important!)
4) Create the s3 buckets you reference
5) Install all the serverless stuff:- (serverless itself from serverless.com )
- npm install --save-dev serverless
- npm install --save-dev serverless-apigw-binary
- npm install --save-dev serverless-python-requirements
- npm install --save-dev serverless-wsgi
- npm install --save-dev serverless-api-cloudfront
6) deploy via sls deploy --stage prod (wait patiently.. cloudfront)
7) Add a route53/dns of your choice ALIAS record for your cloudfront distribution nameUnfortunately, this isn't it. You will need to re-deploy one the api gateway has been established since flask needs to know the 'server_name' it is running as. So, once you have a good initial deployment, copy the api gateway name (something like gibberishseriesofcharacters.execute-api.us-west-2.amazonaws.com) into the config.enf.yml file as the SERVER_NAME paramter and redeploy and it should work.
Voila a python, lambda-based, cloudfront distributed, s3 backed website.
Next up, a plugin system that'll hook you into the request object and allow you to augment it on the way out to do.. dunno things like redirect wp-login to fbi.gov.