Code Monkey home page Code Monkey logo

ghos3's Introduction

๐Ÿ‘‹ I'm Shibo Lyu (or, laosb).

(I used Wexpo Lyu as name before, if you came from old stuff)

Mainly write Swift and JavaScript (TypeScript), and mainly iOS (SwiftUI + UIKit).

Web Classics Social Media
๐ŸŒ Personal Website: lao.sb*1 ๐Ÿฆœ Twitter: @laosbxd
๐Ÿ“’ Blog: The Base โœˆ๏ธ Telegram: Channel Laoself
๐Ÿ“ฎ Email: See on my profile*2. ๐Ÿงต Threads: https://www.threads.net/laosbxd
Trophies
*Asterisks

*1: A refactor is pending.

*2: I check that very public one at a once-per-month frequency basis (not guranteed). That is said, if you happened to know other addresses, it's encouraged to contact me using those ones instead, since I usually check less public inboxes more frequently.

ghos3's People

Contributors

acvigue avatar adityapatadia avatar jac1013 avatar laosb avatar outsideris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ghos3's Issues

Using adapter for videos and other media files

In recent versions of Ghost, the storage adapter can be used for multiple object classes (video/audio/generic files) as long as it implements the urlToPath function

I've tested it by simply adding this to index.ts and rebuilding.

urlToPath(url) {
    return url;
}

Image URL and Automatic Resize of Images

I'm wondering if it's possible to have the blog's hostname in the image URL instead of the S3 endpoint.

From this:
https://s3-us-west-2.amazonaws.com/bucket/image.jpg

To this:
https://our-blog.com/content/images/size/w1200/2023/11/image.jpg

We're interested in this change because we have CloudFlare set up in front of the blog and want CloudFlare to handle the caching.

Additionally, I'm wondering why the image size is not specified when using this adapter, as all the image URLs seem to point to the full-size image.

Quick documentation fix that will prevent people from hitting a wall in the first try

Hello @laosb , thank you very much for updating this storage integration. Something that's probably "biting" everyone that tries out this library is this line:

cp -r ./node_modules/ghos3 ./content/adapters/storage/s3

That line should be:

cp -r ./node_modules/ghos3/* ./content/adapters/storage/s3

Because otherwise we end up with ./content/adapters/storage/s3/ghos3/index.js and that is what's making the error: but errored during boot with: Unable to find storage adapter s3 in.

This is wrong in the original package as well.

Connect to S3 without access and secret key

I haven't tested this, but it would be nice that access_key and secret_key were optional and we let the user use IAM roles (or instance profile) to handle the access to S3. This is the recommended practice anyway.

Thoughts?

Unexpected token } in JSON

Thanks for providing an update to this AWS S3 module but i have an issue when trying to use it and only happens when I add the storage section. For my test i added the example supplied

ERROR Unable to find storage adapter s3 in ,/var/lib/ghost/content/adapters/,/var/lib/ghost/versions/5.44.0/core/server/adapters/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.