rawgithack icon indicating copy to clipboard operation
rawgithack copied to clipboard

No instructions for self-hosting

Open akaihola opened this issue 3 years ago • 7 comments

We need the functionality of rawgithack, but hosted on our private network and pointed to our private repositories.

I tried to make this happen by attempting to run rawgithack locally, changing the URLs and fixing issues one by one. But eventually I hit a wall and faced problems which went above my understanding.

It would be fantastic to have instructions for modifying rawgithack for running our own copy.

akaihola avatar Apr 27 '22 13:04 akaihola

Not really sure if its meant to be replicated and self hosted, it just says that this repo is the source code behind it

proudparrot2 avatar Jun 30 '23 13:06 proudparrot2

I made a fork and deployed locally. It needs to be deployed on cloudflare for it to work as per design.

Here are the changes made https://github.com/phanirithvij/rawgithack - url changes - removal of patreon functionality (for purge-cache page) - changed js endpoints for some hardcoded js files (required as domain is changing)

I have no plan to host a private version for myself just tinkered with it.

Commands I ran

rg githack%.com -l | xargs -n 1 sed -i 's/githack%.com/armyofrats%.in/g'
rg githack.com -l | xargs -n 1 sed -i 's/githack.com/armyofrats.in/g'
# manually replaced githack\.com in rawgithack.conf file
docker-compose --file .docker/docker-compose.yml down && docker-compose --file .docker/docker-compose.yml build && docker-compose --file .docker/docker-compose.yml up

phanirithvij avatar Sep 11 '23 18:09 phanirithvij