Code Monkey home page Code Monkey logo

ogs3proxy's Introduction

Open Graph S3 Proxy

Proxy requests for images on S3 to provide standard Open Graph tags.

Deploy

A request by the Facebook crawler to http(s)://<domain>/<path> will generate a unique page for the object stored at https://s3.amazonaws.com/<bucket>/<path>. This page contains Open Graph tags and basic page content.

All other user agents will be redirected to the specified redirect URL. To view the page that the Facebook crawler receives, add the ?fb query string parameter to the end of the URL.

Configuration

All configuration is done through environment variables.

Variable Description
SECRET_KEY A unique value used for signing
DEBUG Debug mode, default False
FB_APP_ID Facebook app ID
REDIRECT_URL Redirect URL for non-Facebook requests
S3_BUCKET The bucket containing the proxied S3 objects
OG_TITLE Open Graph title
OG_DESCRIPTION Open Graph description

ogs3proxy's People

Contributors

josephabrahams avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.