GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Fix Domain Names #231

Closed itsthejoker closed 2 years ago

itsthejoker commented 2 years ago

Relevant issue: N/a

Description:

So we have a minor problem. The transcription app is designed to be accessed from thetranscription.app and the rest of the site is designed to be accessed from grafeas.org... and they shouldn't share resources. We don't want thetranscription.app/payments to respond to things, after all. This PR adds in a simple redirect system so that if you try to come into a route that is meant for the other domain, the server issues you a 302 so that you can load it from the proper domain name. I can't properly test this without deploying it, but it seems to work; I also fixed the DNS issues so now thetranscription.app actually resolves.

The other major issue is that in order to authenticate with Reddit, we need to give it one URL -- so we basically have to force login to only appear on one domain name. If you try to authenticate to reddit from thetranscription.app but it expects grafeas.org, it'll explode (and vice versa).

Checklist: