Commit graph

223 commits

Author SHA1 Message Date
Dan Janosik
d6d39f5180
track high-level app events 2024-11-18 12:04:50 -05:00
Dan Janosik
9bab4a3669
trying to debug rate-limiting on demo site 2024-11-18 11:28:45 -05:00
Dan Janosik
70f6f8de3c
deal with a bunch of dumb malformed urls hitting demo site
again, I shouldn't accommodate this, but I'm tired of the dumb errors
2024-11-18 09:45:59 -05:00
Dan Janosik
4b9bf30a5f
upgrade zeromq 2024-11-17 19:31:21 -05:00
Dan Janosik
5a6f181852
configurable rate limiting 2024-11-07 15:52:15 -05:00
Dan Janosik
dc1e22ea66
higher rate limit 2024-08-12 11:57:16 -04:00
Dan Janosik
e484230634
-add rate limiting (for demo server getting hammered)
-update dependencies
2024-08-12 11:55:08 -04:00
Dan Janosik
29d7c76dd4
fixes related to s3/cloudfront asset uploading 2023-04-18 10:45:23 -04:00
Dan Janosik
d559094265
if running a secure site, set "trust proxy" to 1 to fix session cookie 2023-04-12 12:02:40 -04:00
Dan Janosik
bedf324af8
drop site_domain config option
it was added to try to fix clipboard copying, but it didn't fix that and a different local/non-secure site workaround has been implemented.
2023-04-12 12:02:09 -04:00
Dan Janosik
539d92d011
naming cleanup 2023-04-12 11:53:12 -04:00
Dan Janosik
c5a147ff9f
Support for reloading rpc credentials and reconnecting
Fixes #393

Smarter identification of auth type (usernamePassword/cookie); if using cookie auth, watch cookie file for changes and, if seen, reload and attempt rpc reconnect
2023-04-03 10:54:17 -04:00
Dan Janosik
8eef8cbb0a
Drop "bitcoin-core" RPC client in favor of jayson
For a while this project used a fork of ruimarinho/bitcoin-core (the Bitcoin RPC project recommended on an old wiki: https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)). Our fork had some minor lint cleanup and updates to some very old dependencies. The upstream project is barely maintained and continues to depend on other libraries with known vulnerabilities. Rather than try to update the fork, this change switches to the jayson RPC library, which is general-purpose rather than bitcoin-specific, is more widely deployed, is better maintained, and lacks vulnerable, old dependencies.
2023-03-31 12:09:53 -04:00
Dan Janosik
ee055782c4
Session-related changes:
-use prod-ready MemoryStore
-support for setting site_domain and secure_site which affect the session cookie
2023-03-31 10:51:17 -04:00
Dan Janosik
4aac1420b9
misc: lint; modernization; tweak mempool cache/keys; tx page: don't show block header JSON tab for unconfirmed 2023-03-22 12:07:26 -04:00
Dan Janosik
ab2442534c
style changes:
-updated dark theme (less vibrant blues)
-minor cleanup of themes
-theme toggling improvements
-rename css files to .min.css for semantic accuracy
2023-01-20 16:55:29 -05:00
Dan Janosik
eb9f29267c
Fix #487
This should've been included with previous commit.
2023-01-20 16:25:03 -05:00
Dan Janosik
195043b5f8
highlight.js: v10.7.1 -> v11.6.0 2022-11-03 18:40:32 -04:00
Dan Janosik
6bfc0876f3
fix for missing map assets when using cdn
this fixes broke maps on the demo site
2022-08-03 17:00:48 -04:00
Dan Janosik
041f7fe301
more regex cleanup 2022-08-03 16:36:07 -04:00
Dan Janosik
12fb9267d7
fix for ip logging 2022-06-08 11:16:50 -04:00
Dan Janosik
e98f0c5c29
ip logging 2022-06-08 11:14:59 -04:00
Dan Janosik
61c7c3a82e
-holiday API support
-holidays data cleanup
-homepage holiday display tweaks
2022-05-22 10:50:27 -04:00
Dan Janosik
204f102ba2
"Bitcoin Holidays"
I'll clean this up later, but I wanted v1.0 live for my favorite Bitcoin Holiday on 5-22...

Show a banner on the homepage when "today" is a Bitcoin Holiday. Also show the full curated list at /holidays. This list began as an adaptation of the data on bitcoin.holiday.
2022-05-21 23:53:53 -04:00
Dan Janosik
d30b13a15f
don't create s3 bucket if not using it 2022-05-11 19:19:04 -04:00
Dan Janosik
48df5b5a92
-refresh diff history periodically (to get ATH)
-UI fix for difficulty below ATH
2022-05-11 12:22:39 -04:00
Dan Janosik
2504f8e120
Various:
-load difficulty history at startup, and store ath for use on hp
-hp: display ath data next to difficulty; add some clickthrough icons next to items in network summary
-move difficulty history logic to coreApi (was in internalApiRouter)
-clean up deprecated "new Buffer()" (use Buffer.from() instead)
-versioning support for utils.fileCache (old versions will be deleted automatically)
-include line breaks in utils.fileCache json output
-change icon for diff history
2022-05-01 16:37:26 -04:00
Dan Janosik
ef8e589d81
Misc:
-switch from fontawesome to bootstrap icons (FA is too heavy)
-url change: /mining-template -> /next-block
-/node-details: split out interfaces into separate section; split out upload/download
-new fun item: value burned in OP_RETURN output
-reorganize img files
-minor ui/text tweaks
2022-04-29 17:46:48 -04:00
Dan Janosik
202f275f63
If s3-backed CDN is configured, set cache control, max-age=10y 2022-04-28 23:26:15 -04:00
Dan Janosik
5740b0572b
Various frontend asset changes
-support for accessing resources via a configurable CDN (probably cloudfront, backed by S3, as I plan to use for the public demo site)
-move resource integrity hashes into a single file (generated by "npm run integrity") for easier maintenance
-cleanup some startup logic
-more updated dependencies
2022-04-28 22:44:03 -04:00
Dan Janosik
87a39ebd2c
updated dependencies; preparatory work for zmq on incoming txs 2022-04-24 16:51:55 -04:00
Dan Janosik
74e01a70c0
support for display of dates with different timezone offsets
By default, we'll use the browser's timezone offset. On the first page load of a session, we'll render any dates on the page with UTC but then refresh dynamically once we get the browser's offset. Subsequent page loads will not need this dynamic refresh because the browser default will be stored in the session for future use.

Users can also set a custom offset, which is helpful in situations where the browser offset is incorrect (like in Firefox with resistFingerprinting=true).
2021-11-28 11:51:45 -05:00
Dan Janosik
602992ee44
cleanup and start on local timezone support 2021-11-05 10:57:28 -04:00
Dan Janosik
fa235b7126
new tool: /utxo-set 2021-11-02 16:29:48 -04:00
Dan Janosik
0c621db51b
minor cleanup 2021-10-28 12:38:03 -04:00
Dan Janosik
a88cea557e
minor tweaks 2021-09-27 15:41:22 -04:00
Dan Janosik
055079ee84
simple app-level access log 2021-09-12 18:36:33 -04:00
Dan Janosik
46294d06a5
Merge branch 'master' of github.com:janoside/btc-rpc-explorer 2021-08-31 14:56:31 -04:00
Dan Janosik
2a81db5549
drop deprecated "request" in favor of "axios" 2021-08-31 14:54:10 -04:00
Dan Janosik
159c2fb96d
exclude ip/userAgent from publicly visible error data 2021-08-14 13:26:33 -04:00
Dan Janosik
0c6b2b4056
minor error handling improvements 2021-08-14 11:37:31 -04:00
Dan Janosik
56566a6512
/test router
single action so far, to render a page with a curated list of txs on it (txs that have unique properties to test tx display logic)
2021-08-07 19:24:53 -04:00
Dan Janosik
716b7b07ca
cache busting for frontend resources; code re-use improvements 2021-07-29 18:36:58 -04:00
Dan Janosik
633cc97b47
track error property counts and show on dashboard 2021-07-25 18:54:27 -04:00
Dan Janosik
ee77a79736
better 404 handling; /address: fix catch issue 2021-07-25 12:09:54 -04:00
Dan Janosik
0a948d715d
cleanup footer quote; link to quote page 2021-07-22 13:25:55 -04:00
Dan Janosik
53172275ec
minor logging 2021-07-21 18:46:23 -04:00
Dan Janosik
f75b7d3f79
armor/retrying around getindexinfo 2021-07-16 11:55:19 -04:00
Dan Janosik
1503361326
Misc:
- Updated dependencies, including removing "bitcoin-core" in favor of a self-maintained fork "btc-rpc-client" (forked from bitcoin-core v3.0) which fixes a dependency-based security vulnerability there; the bitcoin-core-v3.0 bump changes the callback structure of the library so changes have been made adding "await" for rpc-client calls
- Fix some parameter-parsing problems with /rpc-browser and /rpc-terminal tools
2021-06-01 16:55:52 -04:00
Dan Janosik
247875c0bf
Misc:
- Footer random quote for fun
- Bootstrap v5.0.0 -> v5.0.1
- New: `/api/version`
- A separate changelog for the API
2021-05-30 09:47:43 -04:00