diff --git a/files/routes/login.py b/files/routes/login.py index 11f9925e4..e593618cb 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -345,7 +345,48 @@ def sign_up_post(v): if email: send_verification_email(new_user) - if "rama" in request.host: send_notification(new_user.id, "Dude bussy lmao") + text = """Hi there! It's me, your soon-to-be favorite rDrama user @carpathianflorist here to give you a brief rundown on some of the sick features we have here. You'll probably want to start by following me, though. So go ahead and click my name and then smash that Follow button. This is actually really important, so go on. Hurry. + + Thanks! + + Next up: If you're a member of the media, similarly just shoot me a DM and I'll set about verifying you and then we can take care of your sad journalism stuff. + + **FOR EVERYONE ELSE** + + You'll probably want to start by navigating to [the settings page](https://rdrama.net/settings/profile) (we'll be prettying this up so it's less convoluted soon, don't worry) and getting some basic customization done. + + ### Themes + Definitely change your theme right away, the default one (Midnight) is pretty enough, but why not use something *exotic* like Win98, or *flashy* like Tron? Even Coffee is super tasteful and way more fun than the default. More themes to come when we get around to it! + + ### Avatar/pfp + You'll want to set this pretty soon; without uploading one, I put together a randomly-assigned selection of 180ish pictures of furries, ugly goths, mujahideen, anime girls, and My Little Ponys which are used by everyone who was too lazy to set a pfp. Set the banner too while you're at it. Your profile is important! + + ### Flairs + Since you're already on the settings page, you may as well set a flair, too. As with your username, you can - obviously - choose the color of this, either with a hex value or just from the preset colors. And also like your username, you can change this at any time. [Paypigs](https://marsey1.gumroad.com/l/tfcvri) can even further relive the glory days of 90s-00s internet and set obnoxious signatures. + + ### PROFILE ANTHEMS + Speaking of profiles, hey, remember MySpace? Do you miss autoplaying music assaulting your ears every time you visited a friend's page? Yeah, we brought that back. Enter a YouTube URL, wait a few seconds for it to process, and then BAM! you've got a profile anthem which people cannot mute. Unless they spend 20,000 dramacoin in the shop for a mute button. Which you can then remove from your profile buy spending 40,000 dramacoin on an unmuteable anthem. Get fucked poors! + + ### Dramacoin? + Dramacoin is basically our take on the karma system. Except unlike the karma system, it's not gay and boring and stupid and useless. Dramacoin can be spent at [Marsey's Dramacoin Emporium](https://rdrama.net/shop) on upgrades to your user experience (many more coming than what's already listed there), and best of all on tremendously annoying awards to fuck with your fellow dramautists. We're always adding more, so check back regularly in case you happen to miss one of the announcement posts. Holiday-themed awards are currently unavailable while we resolve an internal dispute, but they **will** return, no matter what some other janitors insist. + + Like karma, dramacoin is obtained by getting upvotes on your threads and comments. *Unlike* karma, it's also obtained by getting downvotes on your threads and comments. Downvotes don't really do anything here - they pay the same amount of dramacoin and they increase thread/comment ranking just the same as an upvote. You just use them to express petty disapproval and hopefully start a fight. Because all votes are visible here. To hell with your anonymity. + + Dramacoin can also be traded amongst users from their profiles. Note that there is a 1.5% transaction fee. + + **Dramacoin and shop items cannot be purchased with real money and this will not change.** Though we are notoriously susceptible to bribes, so definitely shoot your shot. It'll probably go well, honestly. + + + ### Badges + Remember all those neat little metallic icons you saw on my profile when you were following me? If not, scroll back up and go have a look. And doublecheck to make sure you pressed the Follow button. Anyway, those are badges. You earn them by doing a variety of things. Some of them even offer benefits, like discounts at the shop. A [complete list of badges and their requirements can be found here](https://rdrama.net/badges), though I add more pretty regularly, so keep an eye on the changelog. + + ### Other stuff + + We're always adding new features, and we take a fun-first approach to development. If you have a suggestion for something that would be fun, funny, annoying - or best of all, some combination of all three - definitely make a thread about it. Or just DM me if you're shy. Weirdo. Anyway there's also the [leaderboards](https://rdrama.net/leaderboard), boring stuff like two-factor authentication you can toggle on somewhere in the settings page (psycho), the ability to save posts and comments, close to a thousand emojis already (several hundred of which are rDrama originals), and on and on and on and on. This is just the basics, mostly to help you get acquainted with some of the things you can do here to make it more easy on the eyes, customizable, and enjoyable. If you don't enjoy it, just go away! We're not changing things to suit you! Get out of here loser! And no, you can't delete your account :na: + + I love you.
*xoxo Carp* 💋""" + + if "rama" in request.host: send_notification(new_user.id, text) session["user_id"] = new_user.id session["session_id"] = token_hex(16) diff --git a/restart b/restart index d885f2a52..d5f207d40 100644 --- a/restart +++ b/restart @@ -1,3 +1,3 @@ source /env killall gunicorn -gunicorn files.__main__:app -k gevent -w 1 --reload -b 127.0.0.1:80 --max-requests 1000 --max-requests-jitter 500 \ No newline at end of file +gunicorn files.__main__:app -k gevent -w 2 --reload -b 127.0.0.1:80 --max-requests 1000 --max-requests-jitter 500 \ No newline at end of file diff --git a/setup b/setup index 32fb6c315..f7af9598a 100644 --- a/setup +++ b/setup @@ -3,6 +3,8 @@ sudo apt update sudo apt -y upgrade sudo apt -y install postgresql postgresql-contrib sudo apt -y install redis-server +cp pg_hba.conf /etc/postgresql/13/main/pg_hba.conf +sudo service postgresql restart sudo psql -U postgres -f schema.sql postgres sudo psql -U postgres -f seed-db.sql postgres sudo apt -y install python3-pip @@ -12,4 +14,4 @@ sudo apt -y install ffmpeg mkdir /songs cp ./env /env . /env -gunicorn files.__main__:app -k gevent -w 1 --reload -b 127.0.0.1:80 --max-requests 1000 --max-requests-jitter 500 \ No newline at end of file +gunicorn files.__main__:app -k gevent -w 2 --reload -b 127.0.0.1:80 --max-requests 1000 --max-requests-jitter 500 \ No newline at end of file diff --git a/supervisord.conf b/supervisord.conf index 039ab48bd..84f49b3cd 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -5,7 +5,7 @@ logfile=/tmp/supervisord.log [program:service] directory=/service -command=gunicorn files.__main__:app -k gevent -w 1 --reload -b 127.0.0.1:80 --max-requests 1000 --max-requests-jitter 500 +command=gunicorn files.__main__:app -k gevent -w 2 --reload -b 127.0.0.1:80 --max-requests 1000 --max-requests-jitter 500 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr