Carpathian Consultancy fork for friendship & tolerance
 
 
 
 
 
 
Go to file
justcool393 6dbad04f08 band-aid fix for frozen session issue on signup (#50)
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>
2022-12-06 22:07:12 +00:00
chat remove stray tabs and spaces 2022-12-05 05:03:10 +02:00
files band-aid fix for frozen session issue on signup (#50) 2022-12-06 22:07:12 +00:00
migrations add button on profile to upload profile background (#48) 2022-12-05 04:16:45 +00:00
.gitattributes convert repo from CRLF to LF 2022-10-04 17:24:58 +02:00
.gitignore add 3 things to gitignore 2022-11-30 00:39:07 +02:00
CODE_OF_CONDUCT.md
Dockerfile setup: don't chown log dir on docker 2022-11-30 13:39:05 -06:00
LICENSE convert LICENSE to tabs 2022-12-06 15:34:09 +02:00
docker-compose.yml limit log size on docker to 100KB 2022-11-27 01:04:39 +02:00
env remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
gunicorn.conf.py show url and method again 2022-11-17 10:41:56 -06:00
imei.sh use https whenever u can 2022-11-28 00:53:37 +02:00
nginx-serve-static.conf stop using pusher (#37) 2022-12-02 22:21:18 +00:00
nginx.conf stop using pusher (#37) 2022-12-02 22:21:18 +00:00
pg_hba.conf mn 2022-05-05 01:09:46 +02:00
readme.md Removing references to old repo 2022-11-23 21:19:39 +00:00
requirements.txt stop using pusher (#37) 2022-12-02 22:21:18 +00:00
schema.sql add button on profile to upload profile background (#48) 2022-12-05 04:16:45 +00:00
seed-db.sql sneed 2022-12-04 23:52:29 +00:00
snappy_PCM.txt WIP: Add Casino (Do Not Merge) (#341) 2022-09-04 22:53:34 +02:00
snappy_rDrama.txt sneed 2022-12-05 21:21:28 +00:00
startup.sh remove `git pull` from startup scripts 2022-10-13 20:20:54 +02:00
startup_chat.sh logging: make logging an env var 2022-11-30 12:38:55 -06:00
startup_docker.sh stop using pusher (#37) 2022-12-02 22:21:18 +00:00
supervisord.conf add nginx to docker 2022-10-04 21:48:52 +02:00
ubuntu_setup.sh stop using pusher (#37) 2022-12-02 22:21:18 +00:00

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.