GithubHelp home page GithubHelp logo

shadow-paw / gh-html Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 116 KB

Github Pages alike for private repository

License: MIT License

Makefile 0.73% TypeScript 77.46% JavaScript 6.53% HTML 9.01% CSS 0.28% Dockerfile 0.59% Shell 5.40%
html-preview github-page private-repository

gh-html's People

Contributors

shadow-paw avatar

Stargazers

 avatar  avatar

Forkers

oursky

gh-html's Issues

redis requirepass

Allow user-defined redis.conf mapped into redis:/usr/local/etc/redis/redis.conf

requirepass XXXXX

ps. Server already handled redis password on connection url

Also note this on deployment guide.

project setup

  • skeleton nodejs server with typescript
  • tslint
  • apidoc
  • travis

make secret-reset

generate secret with make secret-reset

  • take template from .env.example
  • keep old settings from .env

configuration object

  • init config object with process.env, delete secret from env
  • app access config object
  • session lifetime configurable with default 1 day

welcome page

  • welcome
    • how to use
  • auth
    • current login user info
    • logout button
  • setting
    • enable / disable limit access to owned repo to prevent accessing non trusted sources

direct link to access repo

Remove the html and iframe container and use direct link approach. User shall access repo with the url in form /proxy/owner/repo/branch/path/file.html.

If login required, go for login cycle then back to that link.

basic server

  • landing page
  • github oauth
  • repo selection
  • show selected repo index.html

handle url with ?

when access an url ending with ?xxx=abc, it will treat it as part of file and thus returned 404.

proxy guard outgoing url for injection

make sure outgoing request is going to github.com.

  1. Verify how express handle percent-encoded URI.
  2. Filter out invalid char according to RFC3986, especially @ which redirect whole request to another server and can leak access token.

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.