forked from MarseyWorld/MarseyWorld
Snakes
aaf718c78c
h/t to @official-techsupport for finding and help fixing this bug. When given certain pathological input, `sanitize` would time out (notably only on posts, rather than comments, perhaps due to the longer maximum length of input). For example, using as input the result of: with open("test.txt", "w") as f: for i in range(26): f.write(f":{chr(ord('a') + i)}: ") f.write('x' * 20_000) We believe this to be because of some combination of the greedy quantifiers and the negative lookahead before the match. The regex was rewritten to (in theory) have much more linear performance. |
||
---|---|---|
.github | ||
files | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
Dockerfile | ||
LICENSE | ||
dependabot.yml | ||
docker-compose.yml | ||
env | ||
imei.sh | ||
pg_hba.conf | ||
readme.md | ||
redis.conf | ||
requirements.txt | ||
run_tests.py | ||
schema.sql | ||
seed-db.sql | ||
site_settings.json | ||
snappy_PCM.txt | ||
snappy_rDrama.txt | ||
supervisord.conf | ||
ubuntu_setup |
readme.md
This code runs https://rdrama.net, https://pcmemes.net, https://cringetopia.org, and https://watchpeopledie.co
Installation (Windows/Linux/MacOS)
1- Install Docker on your machine.
2- Run the following commands in the terminal:
git clone https://github.com/Aevann1/rDrama/
cd rDrama
docker-compose up
3- That's it! Visit localhost
in your browser.
4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, please edit the variables in the env
file and then restart the docker container.