Giter Site home page Giter Site logo

hacked-wpro's Introduction

hacked-wpro

The original wpro plugin stores bucket name at database. This is not ideal for a project with several environments, because if you replicate your production database to QA, you will un-setup the database bucket you setup early at QA.

Instead, this version assumes you have an environment var called AWS_BUCKET, which is loadded at wp-config as $aws_bucket var. Heres an example:

$aws_bucket = getenv('AWS_BUCKET');

I believe all AWS configuration should be restricted to Environment instead of being stored on database, but for my usecase, only changing the behavior for Bucket Name already worked for me (since my credential user has access to all my buckets)

=== WP Read-Only ===

  • Contributors: alfreddatakillen
  • Tags: wordpress, amazon, s3, readonly
  • Requires at least: 3.3
  • Tested up to: 3.3.1
  • Stable tag: 1.0
  • License: GPLv2

Plugin for running your Wordpress site without Write Access to the web directory. Amazon S3 is used for uploads/binary storage.

== Description ==

This plugin was made with cluster/load balancing server setups in mind - where you do not want your WordPress to write anything to the local web directory.

WPRO will put your media uploads on Amazon S3. Unlike other S3 plugins, this plugin does not require your uploads to first be stored in your server's upload directory, so this plugin will work fine on WordPress sites where the web server have read-only access to the web directory.

  • Wordpress image editing will still work fine (just somewhat slower).
  • Full support for XMLRPC uploads.

This plugin was made for Wordpress sites deployed in a (load balancing) cluster across multiple webservers, where you do not want your WordPress to write anything to the local web directory.

Note: You still need write access to the system /tmp directory for this plugin to work. It will use the system /tmp directory for temporary storage during uploads, image editing/scaling, etc.

= Wordpress MU =

We did not test this plugin in a Wordpress MU environment. It will probably not work out-of-the-box for Wordpress MU.

== Installation ==

  1. Put the plugin in the Wordpress /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Enter your Amazon S3 settings in Settings > WPRO Settings.

== Frequently Asked Questions ==

= Will this plugin work in Wordpress MU environments? =

Probably not, but I am not sure. Input and/or code is very welcome!

= Where do I report bugs? =

Report any issues at the github issue tracker: https://github.com/alfreddatakillen/wpro/issues

= Where do I contribute with code, bug fixes, etc.? =

At github: https://github.com/alfreddatakillen/wpro

= What should I think of when digging the code? =

If you define the constant WPRO_DEBUG in your wp-config.php, then some debug data will be written to /tmp/wpro-debug

= What about the license? =

Read more about GPLv2 here: http://www.gnu.org/licenses/gpl-2.0.html

= Do you like beer? =

If we meet some day, and you think this stuff is worth it, you may buy me a beer in return. (GPLv2 still applies.)

== Changelog ==

= 1.0 =

  • The first public release.

hacked-wpro's People

Contributors

renatodex avatar

Watchers

 avatar James Cloos 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.