1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

move webmention endpoint to different subdomain

This commit is contained in:
Rohan Kumar 2023-12-07 23:53:25 -08:00
parent 6cc697d1ff
commit dc9a9e42ea
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
6 changed files with 9 additions and 9 deletions

View file

@ -16,7 +16,7 @@ disableKinds = ["taxonomy", "term"]
description = "My personal IndieWeb site. I write about and develop software to promote user autonomy. Topics include accessibility, security, privacy, and software freedom." description = "My personal IndieWeb site. I write about and develop software to promote user autonomy. Topics include accessibility, security, privacy, and software freedom."
src = "https://sr.ht/~seirdy/seirdy.one/" src = "https://sr.ht/~seirdy/seirdy.one/"
canonicalBaseURL = "https://seirdy.one" # I have mirrors with different baseURLs canonicalBaseURL = "https://seirdy.one" # I have mirrors with different baseURLs
webmentionEndpoint = "https://seirdy.one/webmentions/receive" webmentionEndpoint = "https://collector.seirdy.one/webmentions/receive"
logUrlPrefix = "https://git.sr.ht/~seirdy/seirdy.one/log/master/item/" logUrlPrefix = "https://git.sr.ht/~seirdy/seirdy.one/log/master/item/"
copyright = "Copyright © 2023 Rohan “Seirdy” Kumar" copyright = "Copyright © 2023 Rohan “Seirdy” Kumar"
dark = "auto" dark = "auto"

View file

@ -15,7 +15,7 @@ What this page demonstrates
This is a test page that demonstrates the following Content-Security-Policy (<abbr>CSP</abbr>): This is a test page that demonstrates the following Content-Security-Policy (<abbr>CSP</abbr>):
``` ```
default-src 'none' 'report-sample';img-src 'self';style-src 'sha256-7cS8Hu9ov7dRhfioeeb9J8mtB9/iLLpVIZsMM+BJUcs=' 'report-sample';frame-ancestors 'none';base-uri 'none';form-action https://seirdy.one/webmentions/receive https://seirdy.one/search/;manifest-src 'self';media-src 'self';sandbox allow-same-origin allow-scripts allow-forms;report-uri https://collector.seirdy.one;connect-src https://collector.seirdy.one default-src 'none' 'report-sample';img-src 'self';style-src 'sha256-7cS8Hu9ov7dRhfioeeb9J8mtB9/iLLpVIZsMM+BJUcs=' 'report-sample';frame-ancestors 'none';base-uri 'none';form-action https://collector.seirdy.one/webmentions/receive https://seirdy.one/search/;manifest-src 'self';media-src 'self';sandbox allow-same-origin allow-scripts allow-forms;report-uri https://collector.seirdy.one;connect-src https://collector.seirdy.one
``` ```
Here's a multi-line version, to reduce horizontal scrolling: Here's a multi-line version, to reduce horizontal scrolling:
@ -26,7 +26,7 @@ img-src 'self';
style-src 'sha256-HASH' 'report-sample'; style-src 'sha256-HASH' 'report-sample';
frame-ancestors 'none'; frame-ancestors 'none';
base-uri 'none'; base-uri 'none';
form-action https://seirdy.one/webmentions/receive https://seirdy.one/search/; form-action https://collector.seirdy.one/webmentions/receive https://seirdy.one/search/;
manifest-src 'self'; manifest-src 'self';
media-src 'self'; media-src 'self';
sandbox allow-same-origin allow-scripts allow-forms; sandbox allow-same-origin allow-scripts allow-forms;
@ -45,7 +45,7 @@ img-src 'self';
style-src 'sha256-HASH'; style-src 'sha256-HASH';
frame-ancestors 'none'; frame-ancestors 'none';
base-uri 'none'; base-uri 'none';
form-action https://seirdy.one/webmentions/receive https://seirdy.one/search/; form-action https://collector.seirdy.one/webmentions/receive https://seirdy.one/search/;
manifest-src 'self'; manifest-src 'self';
upgrade-insecure-requests; upgrade-insecure-requests;
sandbox allow-same-origin allow-forms sandbox allow-same-origin allow-forms

View file

@ -2,7 +2,7 @@
<legend>Publish a response on your own website, and link back to this page's canonical location. Then share your link here to turn it into a Webmention.</legend> <legend>Publish a response on your own website, and link back to this page's canonical location. Then share your link here to turn it into a Webmention.</legend>
<form <form
itemprop="potentialAction" itemscope="" itemtype="https://schema.org/CommentAction" itemprop="potentialAction" itemscope="" itemtype="https://schema.org/CommentAction"
action="https://seirdy.one/webmentions/receive" method="post"> action="{{ .Site.Params.webmentionEndpoint }}" method="post">
<meta itemprop="actionStatus" content="PotentialActionStatus" /> <meta itemprop="actionStatus" content="PotentialActionStatus" />
{{ $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}} {{ $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}}
<input type="hidden" name="target" value="{{ .Site.Params.canonicalBaseURL }}{{ $canonicalRelPermalink }}" /> <input type="hidden" name="target" value="{{ .Site.Params.canonicalBaseURL }}{{ $canonicalRelPermalink }}" />

View file

@ -37,7 +37,7 @@ IgnoreURLs:
- "https://archive.ph" - "https://archive.ph"
- "https://archive.today" - "https://archive.today"
- "https://ogp.me/ns" - "https://ogp.me/ns"
- "https://seirdy.one/webmentions/" - "https://collector.seirdy.one/webmentions/"
- "http://creativecommons.org/ns" - "http://creativecommons.org/ns"
- "https://seirdy.one/search/" - "https://seirdy.one/search/"
# - "https://seirdy.one/.well-known/webfinger?resource=acct%3Aseirdy%40seirdy.one" # - "https://seirdy.one/.well-known/webfinger?resource=acct%3Aseirdy%40seirdy.one"

View file

@ -9,8 +9,8 @@ set -e -u
dirname="$(dirname "$0")" dirname="$(dirname "$0")"
curl_wrapper="$dirname/curl-wrapper.sh" curl_wrapper="$dirname/curl-wrapper.sh"
auth_url='https://seirdy.one/webmentions/authenticate/access-key' auth_url='https://collector.seirdy.one/webmentions/authenticate/access-key'
webmentions_url='https://seirdy.one/webmentions/manage/mentions?limit=9999&status=approved' webmentions_url='https://collector.seirdy.one/webmentions/manage/mentions?limit=9999&status=approved'
webmentions_file="$dirname/../data/webmentions.json" webmentions_file="$dirname/../data/webmentions.json"
stale_after_minutes=90 stale_after_minutes=90

View file

@ -49,7 +49,7 @@
}, },
{ {
"rel": "webmention", "rel": "webmention",
"href": "https://seirdy.one/webmentions/receive" "href": "https://collector.seirdy.one/webmentions/receive"
}, },
{ {
"rel": "http://webfinger.net/rel/profile-page", "rel": "http://webfinger.net/rel/profile-page",