Skip to content

azetrix/speedy-cdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speedy CDN

relieve tension on your servers, trust the assets to speedy

Speedy is a self-hosted CDN web application.

Stop worrying about your website not being able to handle thousands of concurrent connections because Speedy can handle it for you.

Note: Hosting Speedy in the same server as it's remote origin defeats the whole purpose of the CDN thing.

Installation

$ cd /var/www
$ git clone https://github.com/azetrix/speedy-cdn.git

NGINX server block

    [...]

    root /var/www/speedy/public;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php;
    }

    location ~ ^/index\.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    }

    [...]

Usage

  1. Rename config.sample.json to config.json.
  2. Edit config.json to your heart's desire.
  3. Make sure Speedy directory is writable.
  4. Deploy!

CDN Structure

https://cdn.speedy.com/assets/img/logo.png  ->  https://www.origin.com/assets/img/logo.png

Supported MIME Types

const ALLOWED_CONTENT_TYPES = [
        '/^image\/(?:(?:(?:x-(?:citrix-)?)?png)|(?:x-(?:citrix-)?|p)?jpeg|gif|x-icon|bmp|psd|svg\+xml|webp)/i',
        '/^text\/(?:css|plain|yaml|xml|xsl)/i',
        '/^application\/(?:javascript|json|(?:rss\+|xhtml\+|atom\+)?xml)/i'
    ];

About

speedy is a simple yet powerful cdn web application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages