Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dashpilot/quickstart-netlify-spaces
Netlify functions for working with S3/DO Spaces. It uses Netlify Identity for authentication, so you can let users log in and, edit the site, and save images and json data to Digitalocean Spaces or Amazon S3
https://github.com/dashpilot/quickstart-netlify-spaces
amazon-s3 digitalocean-spaces netlify netlify-functions netlify-identity
Last synced: 12 days ago
JSON representation
Netlify functions for working with S3/DO Spaces. It uses Netlify Identity for authentication, so you can let users log in and, edit the site, and save images and json data to Digitalocean Spaces or Amazon S3
- Host: GitHub
- URL: https://github.com/dashpilot/quickstart-netlify-spaces
- Owner: dashpilot
- Created: 2020-07-05T23:24:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-01T16:22:39.000Z (over 1 year ago)
- Last Synced: 2024-11-25T04:35:50.226Z (2 months ago)
- Topics: amazon-s3, digitalocean-spaces, netlify, netlify-functions, netlify-identity
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# netlify-spaces
Netlify functions for working with Amazon S3/Digitalocean Spaces. It uses Netlify Identity for authentication, so only logged-in users can make requests to S3/Spaces.
## How To:
### 1. Deploy this repo to Netlify
Deploy this repo to Netlify using the 'Deploy to Netlify'-button below:
### 2. Add your S3 credentials as environment variables
In Netlify, go to settings > environment and create the following environment variables for your Amazon S3 or Digitalocean Spaces settings
`S3_ENDPOINT`: your S3/Spaces endpoint (e.g ams3.digitaloceanspaces.com)\
`S3_KEY`: your S3/Spaces key\
`S3_SECRET`: your S3/Spaces secret\
`S3_BUCKET`: your S3/Spaces bucket### 3. Enable Netlify Identity and log in
In Netlify, go to 'Identity' and press 'Enable Identity'\
Log in to your website via /login\
After login, you'll be redirected to the homepage, where you can test the integration with S3/Spaces### 4. Press the :star: button
Don't forget to press the :star: button to let me know I should continue improving this project