Skip to content

Reddit ripoff that isn't very functional. Terrible obvious pun name

License

Notifications You must be signed in to change notification settings

zeroxthreef/greenit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

greenit

greenit logo

Bad reddit clone experiment. Only reason it exists is to learn Pike & Pike ScriptRunner.

Installation

You need to have installed pike_redis_client and pike scriptrunner.

(you might need to use my fork of pike redis client that uses unix domain sockets)

Put those both in your /usr/local/lib/pike8.0/modules folder.

VERY IMPORTANT: you will need to add the standard letsencrypt stuff to the nginx .conf file if you wanna listen to any other port than 8000 and also ssl.

Once you've taken care of that, run the src/install.sh script (as root) and restart nginx.

You will also need to modify the Pike ScriptRunner SCGI script and remove the first line, then replace it with #!/usr/bin/pike. Rename that pike script file to ScriptRunner_SCGI.pike, and move it to /usr/local/bin.

One thing to note about configuration: SELECT 2 is hardcoded into 3 files. Globally (for psp files) the util.psp file contains a constant for this and the login.pike and logout.pike files also contain this constant. There would only be one file for this, but scriptrunner has some limitations that required this solution.

License

MIT

About

Reddit ripoff that isn't very functional. Terrible obvious pun name

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published