This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This plugins restricts the access of anonymous users to your GNU MediaGoblin instance. You can choose between denying the access - and allowing as needed some route paths - or allowing it by default - and denying some route paths.

Set up the private plugin

  1. Install this Python package from PyPi.

    $ pip install mediagoblin-private
    

    Or if you’ve checked out this plugin, you should be able to build and install it in the same virtual environment than MediaGoblin. Let’s say it’s in the same parent directory, you can execute:

    $ ../mediagoblin/bin/python setup.py build
    $ ../mediagoblin/bin/python setup.py install
    
  2. Enable the mediagoblin-private plugin by adding the following line to the [plugins] section of your MediaGoblin configuration file.

    [[mediagoblin_private]]
    
  3. Restart the MediaGoblin instance for the configuration file changes to be effective.

Configure the private plugin

You should first set deny_access value to define if the access must be denied - e.g. true, the default - or allowed - e.g. false - to anonymous users.

You can also define some route paths exceptions to reverse the restriction behaviour. It could be useful if you want to deny the access of your instance but keep some public pages, for example. You would also want to keep an open MediaGoblin instance but deny the access of anonymous users to some pages or media. Anyway, you can set the following to define your exceptions:

  • path_exceptions: a list - e.g. comma-separated values - of strict route path for which the access will either be denied or allowed.
  • path_regex_exceptions: a list of regular expression to match the route path to either deny or allow - see the Regular Expression HOWTO.

Note that route path which starts with /auth/ will always be allowed.

As an example, the following deny the access of anonymous users to your MediaGoblin instance except for the homepage - e.g. /, an about page at /about/ and route paths which starts with /public/:

[[mediagoblin_private]]
deny_access = true
path_exceptions = '/', '/about/'
path_regex_exceptions = '/public/.*',

Do not forget the trailing comma in case of a single item in the path_exceptions or path_regex_exceptions list!

Release History

Release History

0.2.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mediagoblin_private-0.2.0.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source Sep 1, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting