https://github.com/zeroxthreef/greenit
Reddit ripoff that isn't very functional. Terrible obvious pun name
https://github.com/zeroxthreef/greenit
pike reddit-clone scriptrunner
Last synced: 5 months ago
JSON representation
Reddit ripoff that isn't very functional. Terrible obvious pun name
- Host: GitHub
- URL: https://github.com/zeroxthreef/greenit
- Owner: zeroxthreef
- License: mit
- Created: 2019-03-04T01:45:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T17:54:38.000Z (almost 7 years ago)
- Last Synced: 2025-03-28T00:47:02.196Z (11 months ago)
- Topics: pike, reddit-clone, scriptrunner
- Language: Pike
- Homepage: https://greenit.vertesine.com/
- Size: 282 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# greenit

Bad reddit clone experiment. Only reason it exists is to learn Pike & Pike ScriptRunner.
## Installation
You need to have installed  and .
(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