fiatjaf
a252707ab5
a crazy/stupid way of doing request throttling and making the best use of cloudflare caching.
2024-09-26 09:59:53 -03:00
fiatjaf
ed270747af
a more stupid way of doing middle chaining, but at least it is clearer.
2024-09-26 09:59:28 -03:00
fiatjaf
60116e36fe
block more user-agents.
2024-09-26 07:36:34 -03:00
fiatjaf
5a6cfd8975
organize middleware a little more.
2024-09-26 07:24:46 -03:00
fiatjaf
8b357b905e
organize middlewares.
2024-09-26 07:10:20 -03:00
dtonon
acb6039d33
Block aggressive bots
2024-09-26 07:54:55 +02:00
dtonon
743e0057e3
Move the verbose log to the router
2024-09-26 07:51:13 +02:00
fiatjaf
01f327af7c
block cloudflare requests, someone was making a million meaningless requests.
2024-09-26 00:02:29 -03:00
fiatjaf
7405cc2b75
remove AI language thing.
2024-09-25 14:28:38 -03:00
fiatjaf
7a054f9d65
fix tailwind debug and skip language model on dev.
2024-09-11 16:39:19 -03:00
fiatjaf
0522dd4b78
initiate sys before using it.
...
fixes https://github.com/fiatjaf/njump/issues/65
2024-08-07 01:47:40 -03:00
fiatjaf
4011528058
refactor so embedded note and profile are rendered similarly to their non-embedded versions.
2024-08-03 14:26:57 -03:00
fiatjaf
0dd8c38a95
remove opentelemetry.
2024-08-02 15:41:29 -03:00
fiatjaf
c0004f67a2
fix slowness of previous refactors that injected nostr-sdk into this codebase + refactors.
...
- adjusting many small things related to nostr-sdk usage
- fetching profiles in a smarter way
- decoupling the logic for rendering profile pages from the `grabData`/`getEvent` flow of other event pages.
- incorporating nostr-sdk more holistically, including more hints stuff
- improving nostr-sdk itself after some bugs and weird behaviors observed here
- set up opentelemetry (should probably remove this later)
2024-08-02 12:48:58 -03:00
fiatjaf
56b3919d4e
use new nostr-sdk with hints (full outbox) support for improved event fetching that hopefully works.
2024-07-27 22:58:10 -03:00
fiatjaf
ab34bde883
sitemaps of sitemaps of profile sitemaps.
2024-06-16 16:27:24 -03:00
fiatjaf
1eb3c45755
remove HTML archives pages, leave only the sitemaps.
2024-06-12 15:30:41 -03:00
fiatjaf
a7d29b151a
fix: fill archives after 10 minutes and then every 24 hours instead.
2024-06-12 15:18:35 -03:00
Yasuhiro Matsumoto
6a3ccdbeec
fix serve
2024-02-27 19:08:59 -03:00
fiatjaf
7b2c462868
add default trusted pubkeys.
2024-02-17 14:06:53 -03:00
mattn
1019fef1d3
Relay config by json ( #47 )
...
* relay-config.json
* fix README.md
* trustedPubKeys is not relay configuration
* update README.md
2024-02-17 14:05:22 -03:00
fiatjaf
8ad3e5cadd
allow manual deletes.
2024-01-16 18:52:08 -03:00
fiatjaf
a7325ea795
multiple fixes and adjustments until it compiles and runs.
2024-01-08 08:44:01 -03:00
fiatjaf
7f0bb418b6
ported all templates to templ syntax.
2024-01-07 15:48:55 -03:00
fiatjaf
91a0ea768b
do not use language detector model on dev mode.
...
because it's slow.
2023-12-31 17:50:12 -03:00
fiatjaf
5df944705e
use go-text/typesetting library to render text better: rendering farsi.
2023-12-25 23:27:09 -03:00
Yasuhiro Matsumoto
ba7261eee8
Safely close databases
2023-12-24 14:05:09 -03:00
Daniele Tonon
6a2ff72985
Load profiles last notes asynchronously
2023-12-20 07:50:17 +01:00
Daniele Tonon
0f6d6fa226
Support embedding notes in external web pages
...
SQASH
2023-11-27 12:20:49 +01:00
fiatjaf
0b5766fdfa
a humble test framework for opengraph stuff.
2023-11-09 10:36:00 -03:00
fiatjaf
3caa8578dd
use badger v4 for internal db.
2023-11-06 12:43:06 -03:00
fiatjaf
bf79cd9d0a
expose our internal db as a relay.
2023-11-06 11:47:13 -03:00
fiatjaf
9967d10cd6
using eventstore for storing events, querying locally.
2023-11-05 14:39:10 -03:00
fiatjaf
d50cd65165
fix typography: include plugin on prod build.
2023-10-29 08:15:32 -03:00
fiatjaf
f9e099c840
tailwind debug mode and build mode for prod and other adjustments.
2023-10-26 16:02:18 -03:00
fiatjaf
e4f0e40123
redirect from favicon.ico to /static/...
2023-10-22 09:28:33 -03:00
fiatjaf
db111e6398
picking random content happens on the server, homepage loads with zero overhead.
2023-10-21 18:39:56 -03:00
fiatjaf
9d86539349
cleanup template remainings.
2023-10-21 14:37:49 -03:00
fiatjaf
d459769915
rename render -> render_event.go
2023-10-21 14:10:31 -03:00
fiatjaf
ebeb9820d8
move redirectors, renderRelay and renderProfile out of render.
2023-10-21 14:10:08 -03:00
fiatjaf
f70b13afe7
relay and archive sitemaps xml (with a nice hack because htmlgo is not xml-friendly.)
2023-10-21 13:34:32 -03:00
fiatjaf
65025d4967
tmpl relay.html and replace LastNoteItem struct with a simpler EnhancedEvent with methods instead of hardcoded values.
2023-10-21 12:19:30 -03:00
fiatjaf
901b2b5d62
tmpl migration: profile.html
2023-10-21 11:47:28 -03:00
fiatjaf
8cd313572f
adjust templateMapping.
2023-10-21 08:25:58 -03:00
fiatjaf
a04f82764a
rename variable CanonicalHost to Domain.
2023-10-21 07:47:37 -03:00
fiatjaf
6aa1440b05
tmpl migration: note.html
2023-10-21 07:45:44 -03:00
fiatjaf
493ee21465
DISK_CACHE_PATH as an environment variable.
2023-10-21 07:45:03 -03:00
fiatjaf
bc947e29d8
mass tmpl migration: partials, other.html and archive.html.
2023-10-21 00:47:19 -03:00
fiatjaf
4b1dddebae
make robots.txt rendering a simple string thing.
2023-10-19 21:11:26 -03:00
fiatjaf
7293103fc7
first step in the migration to templ.
2023-10-19 21:11:26 -03:00