Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use longer domain as canonical to reinforce correct name #120

Closed
8 tasks done
chadwhitacre opened this issue Sep 19, 2024 · 33 comments
Closed
8 tasks done

Use longer domain as canonical to reinforce correct name #120

chadwhitacre opened this issue Sep 19, 2024 · 33 comments

Comments

@chadwhitacre
Copy link
Contributor

chadwhitacre commented Sep 19, 2024

We continually see people using "OSS Pledge" as the name vs. "Open Source Pledge." Some of this confusion is likely unavoidable, but using the short domain as canonical surely doesn't help. Let's think about using the longer one as canonical.

To Do

@chadwhitacre
Copy link
Contributor Author

e.g. #111 (comment)

@chadwhitacre chadwhitacre changed the title Use longer domain as canonical Use longer domain as canonical to reinforce correct name Sep 19, 2024
@mitsuhiko
Copy link

As part of the problem I'm obviously in favor :)

@vladh
Copy link
Member

vladh commented Sep 19, 2024

A lot of people are using “OSS Pledge”:

I think using opensourcepledge.com is the best way to avoid confusion. Any potential cons? Longer to type?

@selviano
Copy link
Collaborator

We use osspledge.com on the billboards/ooh because the full opensourcepledge.com is too long for that format. But the OOH campaign is ephemeral and I think everywhere else we should use the full URL consistently

@chadwhitacre
Copy link
Contributor Author

Okay! Let's do it.

@vladh
Copy link
Member

vladh commented Sep 19, 2024

Okay, here we go:

[todo moved to ticket description]

Anything else?

@mitsuhiko
Copy link

@vladh
Copy link
Member

vladh commented Sep 19, 2024

Done in #123

@vladh
Copy link
Member

vladh commented Sep 19, 2024

@chadwhitacre When creating redirects, we'll have to do things differently than we have so far.

Currently, https://opensourcepledge.com redirects to https://osspledge.com. But https://opensourcepledge.com/members 404s instead of redirecting to https://osspledge.com/members.

So when changing the redirects now, we want to be sure that https://osspledge.com/foo/bar will redirect to https://opensourcepledge.com/foo/bar otherwise we'll have a lot of broken links.

@chadwhitacre
Copy link
Contributor Author

Agreed. If we want to support a handful of existing URLs that's one thing, if we want to support all present and future URLs that another, need something dynamic or double-build or some such. We have another repo for the other domain atm.

@vladh
Copy link
Member

vladh commented Sep 19, 2024

FWIW, I'd point osspledge.com to an HTTP server that does an appropriate rewrite.

@chadwhitacre
Copy link
Contributor Author

Use case for val.town?

@vladh
Copy link
Member

vladh commented Sep 19, 2024

@chadwhitacre
Copy link
Contributor Author

Nice! @stevekrouse Any chance you want to donate a pro subscription to Pledge so we can set this up with our custom domain? 😬 🙇‍♂️ Then you could add that in moneyValueOfMaterials. 😌

@stevekrouse
Copy link
Contributor

This is awesome! Thanks for thinking of us!

I'd love to help out - just checking with the team about the logistics of donating an account. We haven't done that yet and I'm not sure how it'd work in our database/stripe

@chadwhitacre
Copy link
Contributor Author

Thanks @stevekrouse! If it's a pain I can just pay for it for now. 🙃

@stevekrouse
Copy link
Contributor

Apparently it's very easy for us to toggle in our database, so just let me know the username of the account you want upgraded. Is it @vladh?

@vladh
Copy link
Member

vladh commented Sep 20, 2024

Thanks so much @stevekrouse! I'm happy to use my account for this, but maybe @chadwhitacre would like to do something else? Just checking.

@chadwhitacre
Copy link
Contributor Author

Go for it @vladh. Thanks @stevekrouse!

@chadwhitacre
Copy link
Contributor Author

If there's some sort of org or team account on val.town maybe we can use that? Otherwise I'm fine w/ vladh for now.

@stevekrouse
Copy link
Contributor

Great! We don't have teams yet

@vladh
Copy link
Member

vladh commented Sep 20, 2024

Works! https://osp-redir-test.vlad.website/foo/bar

(This should redirect to https://opensourcepledge.com/foo/bar, which 404s.)

Thanks again @stevekrouse! 🙏🏻

@chadwhitacre When you're ready, here's what needs to be set up for osspledge.com.:

@ A 75.2.96.173
@ A 99.83.186.151
www A 75.2.96.173
www A 99.83.186.151

@chadwhitacre
Copy link
Contributor Author

I need to run the DNS change through Sentry Ops, will do that next week. For now I've added manual redirects in the tmp-osspledge-redirect repo and flipped the switch in GitHub CNAME files.

@chadwhitacre
Copy link
Contributor Author

Seems to be working?

https://osspledge.com/members/val-town

@vladh
Copy link
Member

vladh commented Sep 21, 2024

Oh wow, thanks for doing all that manually.

@vladh
Copy link
Member

vladh commented Sep 21, 2024

This 404s, FWIW: https://osspledge.com/osspledge.pdf

(Maybe it doesn't matter)

@chadwhitacre
Copy link
Contributor Author

I mean, it wasn't fully manual. ;-)

import csv, os
members = csv.reader(open('../opensourcepledge.com/members.csv'))

for slug, url in members:
    fp = open(f'members/{slug}/index.html', 'w+')
    print(f'''
<meta http-equiv="refresh" content="0; URL='https://opensourcepledge.com/members/{slug}/'" />''', file=fp)

@chadwhitacre
Copy link
Contributor Author

@ A 75.2.96.173
@ A 99.83.186.151
www A 75.2.96.173
www A 99.83.186.151

I made a PR 🔒 to update the A records for the apex. www is CNAMEd to the apex which should still be fine, yes?

@vladh
Copy link
Member

vladh commented Sep 23, 2024

Yep sounds good! 💃🏻

@chadwhitacre
Copy link
Contributor Author

We recently transferred osspledge.com and fair.io from my personal Plausible account to Sentry's corp account. I'm supposed to have admin access still but I'm not seeing them in the dashboard. I've pinged internally about that, will follow up when I have it ...

@chadwhitacre
Copy link
Contributor Author

Plausible should be good: https://plausible.io/opensourcepledge.com.

@chadwhitacre
Copy link
Contributor Author

DNS change deployed, wfm:

https://osspledge.com/random/path/redirects/to/opensourcepledge.com

I think we're done here?

@chadwhitacre
Copy link
Contributor Author

Still waiting for propagation everywhere but seeing it some places. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants