forked from MarseyWorld/MarseyWorld
justcool393
6dbad04f08
through some reason or another, people are somehow getting cookies that aren't prepended with a dot. this is a problem because both sessions at, as best as I can tell, mix so it tries to read from a different cookie than we write to. this essentially "freezes" the session in place. users are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc. ~~this attempts to delete bad session cookies (i.e. cookies with a domain that don't start with a dot).~~ ~~we don't do this on "dotless" domains (and by extension localhost) because browser support for setting cookies on FQDNs that only have one dot has tenuous support among browsers anyway).~~ ~~this *may* log some people out, but... their days of being able to do stuff on the site were numbered anyway.~~ **edit: as amazing as this thought was, browsers just wipe the entire cookies completely and there's no way to specifically target dotless cookies. for an issue that affects a few users, better to just tell them to clear their cookies. if *this* doesn't work, delete service-worker.js and be done with the whole service worker crap. forever. permanently. this PR also includes some QOL improvements.** Co-authored-by: justcool393 <justcool393@gmail.com> Reviewed-on: rDrama/rDrama#50 Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net> Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net> |
||
---|---|---|
chat | ||
files | ||
migrations | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
Dockerfile | ||
LICENSE | ||
docker-compose.yml | ||
env | ||
gunicorn.conf.py | ||
imei.sh | ||
nginx-serve-static.conf | ||
nginx.conf | ||
pg_hba.conf | ||
readme.md | ||
requirements.txt | ||
schema.sql | ||
seed-db.sql | ||
snappy_PCM.txt | ||
snappy_rDrama.txt | ||
startup.sh | ||
startup_chat.sh | ||
startup_docker.sh | ||
supervisord.conf | ||
ubuntu_setup.sh |
readme.md
This code runs https://rdrama.net, https://pcmemes.net and https://watchpeopledie.tv
Installation (Windows/Linux/MacOS)
1- Install Docker on your machine. Docker installation
2- Run the following commands in the terminal:
git clone https://fsdfsd.net/rDrama/rDrama.git
cd rDrama
docker-compose down --rmi all --remove-orphans --volumes
docker-compose up
3- That's it! Visit localhost
in your browser and make an account (the first account to be made will have full admin rights)
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, edit the variables in the env
file and then restart the docker container.