Skip to content

Serves files from github, bitbucket and gitlab, but with the correct content types

License

Notifications You must be signed in to change notification settings

neoascetic/rawgithack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raw.githack.com

This is the source code behind raw.githack.com - CDN for your source code that serves files with proper Content-Type headers.

Supported Platforms

raw.githack.com supports the following source code hosting platforms:

  • GitHub - served via raw.githack.com subdomain
  • GitHub Gist - served via gist.githack.com subdomain
  • GitLab - served via gl.githack.com subdomain
  • Bitbucket - served via bb.githack.com subdomain
  • Gitea - served via gt.githack.com subdomain
  • Codeberg - served via cb.githack.com subdomain

Both development and production (CDN) URLs are available for each platform.

Example config.lua

return {
   simsim = "SECRET",
   cf = {
      zone = "ZONE_ID",
      username = "USERNAME",
      api_key = "API_KEY",
      username = "USERNAME"
   },
   patreon = {
      campaign = "CAMPAIGN_ID",
      token = "ACCESS_TOKEN"
   }
}

Frontend

Pages are built using jopa static site generator, with the following command:

layout_file="web/layout.jsh" from="web/pages" jopa

About

Serves files from github, bitbucket and gitlab, but with the correct content types

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 10