on master help sign in
Merge remote-tracking branch 'upstream/master'
commitf0dd9bccd1bff36be5e3bb9d66df2b7fab74cf64 authorckipp01 <ckipp@pm.me> dateThu 4 Jul 2019, 07:10 (7 years ago) parentbc06109019da89
2 files changed+12−2
README.md+11−1 scripts/sites.js+1−1
README.md+11−1
@@ -26,9 +26,18 @@ Instead of linking to the directory, you can also link to the next link in the r
2626
2727[The Hallway](https://webring.xxiivv.com/hallway.html) is a decentralized forum using [twtxt](https://twtxt.readthedocs.io/en/stable/user/twtxtfile.html) feeds.
2828
29−To join, create a twtxt text file, and add its URL to your webring entry under `feed`.
29+To join, create a `.txt` file on your site, and add its URL to [your webring entry](https://github.com/XXIIVV/Webring/blob/master/scripts/sites.js) as `feed:`. The content of the file should be a dateISO string, a tab(or 3 spaces) and a message:
30+
31+```
32+2016-02-04T13:30:00+01:00 You can really go crazy here! ┐(゚∀゚)┌
33+2016-02-03T23:05:00+01:00 @<example http://example.org/twtxt.txt> welcome to twtxt!
34+2016-02-01T11:00:00+01:00 This is just another example.
35+2015-12-12T12:00:00+01:00 Fiat lux!
36+```
37+
3038This file needs to be accessible via CORS, so if you're self-hosting, please make sure to allow the `webring.xxiivv.com` origin.
3139Here's an example of how to do so with Nginx:
40+
3241```
3342location / {
3443 index index.html;
@@ -40,6 +49,7 @@ location / {
4049 }
4150}
4251```
52+
4353You don't need to allow all origins nor allow any other methods rather than GET, doing so can harm the security of your website, please read about [Cross-Origin Resource Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) if you intend to do anything more complicated.
4454
4555## API
scripts/sites.js+1−1
@@ -77,7 +77,7 @@ const sites = [
7777 { url: 'https://dsdshcym.github.io' },
7878 { url: 'https://wiki.chronica.xyz', title: 'chronica', type: 'wiki', author: 'ckipp', contact: 'ckipp@pm.me', feed: 'https://chronica.xyz/hallway.txt' },
7979 { url: 'https://boffosocko.com' },
80− { url: 'https://hex22.org' },
80+ { url: 'https://hex22.org', title: 'hex22', author: 'kodedninja', contact: 'karamanhunor@pm.me', feed: 'https://t.seed.hex22.org/twtxt.txt' },
8181 { url: 'https://patrikarvidsson.com' },
8282 { url: 'https://sophieleetmaa.com' },
8383 { url: 'https://xinniw.github.io' },