Giter VIP home page Giter VIP logo

umirr's Introduction

umirr: micro mirror service

Umirr is an application for generating a geographically-relative list of mirrors for Fedora or RHEL based distributions. The output is designed to be parsed by yum, configured via the mirrorlist parameter in yum repo files. It is designed to be as simple as possible.

Why create a new mirror service?

I needed to deploy a mirrorlist solution, but I didn't like any of the existing options. They all seemed overly complicated for my needs. The only thing I wanted was an API cable of returning the mirrorlist text. I didn't care about a pretty web portal or managing users. I also didn't think the amount of data justified using a database. All of umirr's configuration and data are read from simple yaml files.

How does it work?

Umirr is a python WSGI application. To keep things as lean as possible, it doesn't lookup geoip information itself. Instead, it relies on HTTP headers for generating results. Typically this mean running it behind a webserver capable of looking up the geoip information for request source IPs.

Required headers:

  • X-Forwarded-For-Latitude
  • X-Forwarded-For-Longitude

Optional headers:

  • X-Forwarded-For
  • X-Forwarded-For-City
  • X-Forwarded-For-Region
  • X-Forwarded-For-Country

What are the requirements?

  • falcon
  • PyYAML
  • six
  • python WSGI HTTP server (gunicorn recommended)
  • web server capable of looking up geoip information of request source IPs (nginx recommended)

How do I install this?

Take a look at INSTALL.md.

umirr's People

Contributors

carlwgeorge 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.