This website requires JavaScript.
8a2f501e8e
refactor: rename accountPins to accountPinsBinary
Derrick Hammer
2024-03-16 11:00:27 -0400
86c53d3c54
refactor: add default for auth_type
Derrick Hammer
2024-03-15 07:39:43 -0400
cafe863350
fix: add missing mapstructure tags
Derrick Hammer
2024-03-15 07:39:18 -0400
41f9947429
fix: ensure AuthType is uppercase
Derrick Hammer
2024-03-15 07:37:44 -0400
8b687d506f
fix: set to and from
Derrick Hammer
2024-03-15 07:31:47 -0400
52f462e03e
refactor: add from to mail config
Derrick Hammer
2024-03-15 07:30:39 -0400
2d571e3484
fix: remove minutes from template copy
Derrick Hammer
2024-03-15 07:27:45 -0400
ba0d32bb63
fix: update how ExpireTime is computed
Derrick Hammer
2024-03-15 07:27:24 -0400
7c6fec61b6
fix: remove tpl extension
Derrick Hammer
2024-03-15 07:03:35 -0400
fae98f3d52
refactor: fix gob paths and template prefix/suffixes
Derrick Hammer
2024-03-15 07:01:22 -0400
e11340ad2b
refactor: ensure we set a cookie, auth header and json response in both login and otp validate
Derrick Hammer
2024-03-14 12:54:41 -0400
e380dacced
fix: loop needs to start at 1 so it's not outside the history range, else it tries to always create a date on boot
Derrick Hammer
2024-03-14 07:40:12 -0400
37708c91f2
fix: don't compute by usd the contract price
Derrick Hammer
2024-03-14 07:20:11 -0400
7d87ed6ad7
refactor: switch to using newRat
Derrick Hammer
2024-03-14 07:19:14 -0400
19afa09c4d
refactor: split computeByRate to newRat
Derrick Hammer
2024-03-14 07:17:58 -0400
cc63ff2c6e
dep: update libs5
Derrick Hammer
2024-03-14 06:54:54 -0400
358d5fdf60
feat: add account info endpoint
Derrick Hammer
2024-03-14 06:42:38 -0400
d946e969bc
fix: update to check for ErrDuplicatedKey and return a more specific but generic error if so
Derrick Hammer
2024-03-13 18:53:45 -0400
6ff84bbc1a
refactor: use dedicated auth mw for ping
Derrick Hammer
2024-03-13 18:45:14 -0400
d5118beb58
refactor: allow purpose to be none
Derrick Hammer
2024-03-13 18:44:09 -0400
749a932663
fix: give login a dedicated authMiddleware instance
Derrick Hammer
2024-03-13 17:35:26 -0400
4f891e067c
refactor: rename pong to ping
Derrick Hammer
2024-03-13 17:34:10 -0400
2e3ec1408e
refactor: add PingResponse and link to /api/auth/ping
Derrick Hammer
2024-03-13 17:26:25 -0400
2f0a538033
fix: return user
Derrick Hammer
2024-03-13 14:09:17 -0400
0efcd35d65
refactor: add EmptyAllowed to authMw2fa
Derrick Hammer
2024-03-13 14:01:08 -0400
bf8d909a3c
refactor: add option to allow jwt to be bypassed if there is no token
Derrick Hammer
2024-03-13 14:00:19 -0400
ca12b99438
fix: first/last name are snake case
Derrick Hammer
2024-03-13 13:54:30 -0400
36c614c483
fix: correct swagger for ping
Derrick Hammer
2024-03-13 12:30:31 -0400
c416b40d00
feat: add ping endpoint to check auth status
Derrick Hammer
2024-03-13 12:26:38 -0400
06f37bf3d8
refactor: add 415 response to /s5/metadata
Derrick Hammer
2024-03-12 11:23:15 -0400
a1014acf15
refactor: use StatusUnsupportedMediaType
Derrick Hammer
2024-03-12 11:21:25 -0400
d5782c7e86
fix: bad error message
Derrick Hammer
2024-03-12 06:47:57 -0400
296f7b611e
dep: update libs5
Derrick Hammer
2024-03-11 17:51:42 -0400
9529c71b3c
dep: update libs5
Derrick Hammer
2024-03-11 17:49:54 -0400
d5bed19c5d
dep: update libs5
Derrick Hammer
2024-03-11 17:46:28 -0400
f33b73b533
dep: update libs5
Derrick Hammer
2024-03-11 17:40:58 -0400
edfce8b181
dep: update libs5
Derrick Hammer
2024-03-11 17:25:02 -0400
87fa117df3
dep: update libs5
Derrick Hammer
2024-03-11 16:41:11 -0400
d99b994175
dep: update libs5
Derrick Hammer
2024-03-11 11:51:20 -0400
4941949f22
refactor: rewrite importPrices to track and import the last x days
Derrick Hammer
2024-03-11 11:12:48 -0400
c63f7ef50b
fix: use DailyJob
Derrick Hammer
2024-03-11 11:00:34 -0400
96ec3b8501
fix: dont compute by rate the max rpc price
Derrick Hammer
2024-03-11 08:01:56 -0400
944cb868b5
refactor: increase decimal to 30,20
Derrick Hammer
2024-03-11 07:57:09 -0400
0d9d7d4d98
refactor: store to 20 decimal places
Derrick Hammer
2024-03-11 07:54:52 -0400
973c40afb4
refactor: switch to using decimals in db, a fork of the siacentral api to return decimals, strings for currency settings, and rats to do big number math safety
Derrick Hammer
2024-03-11 07:50:07 -0400
a4bb3eadaa
fix: wrong debug output
Derrick Hammer
2024-03-11 06:49:10 -0400
e7caa50932
fix: don't store MaxRPCSCPrice as a float, and use big.Rat to compute it
Derrick Hammer
2024-03-11 06:42:51 -0400
7f9887bdcc
fix: don't divide maxDownloadPrice by redundancy
Derrick Hammer
2024-03-10 17:32:37 -0400
6edf872664
fix: need to divide by block time (blocks in a month)
Derrick Hammer
2024-03-10 17:01:55 -0400
20a273a0dd
refactor: change maxStoragePrice math for readability
Derrick Hammer
2024-03-10 14:50:25 -0400
d628ede1ee
fix: use maxStoragePrice
Derrick Hammer
2024-03-10 14:48:09 -0400
9d17ae1065
fix: don't compute maxRPCPrice based on usd rate
Derrick Hammer
2024-03-10 14:42:00 -0400
01cd30b6f8
fix: divide maxRPCPrice by 1 million
Derrick Hammer
2024-03-10 14:38:59 -0400
22a5c661bc
refactor: update max_rpc_sc_price default to 0.1
Derrick Hammer
2024-03-10 14:36:45 -0400
51d74b6483
refactor: add max_contract_sc_price to defaults
Derrick Hammer
2024-03-10 14:35:37 -0400
57c5088a1f
fix: max_rpc_price needs to be max_rpc_sc_price
Derrick Hammer
2024-03-10 14:35:05 -0400
6eeed24707
fix: need to divide maxStoragePrice by a tib unit
Derrick Hammer
2024-03-10 14:33:46 -0400
af29081a3a
refactor: have rpc and contract prices be in SC as they are expected to change very rarely
Derrick Hammer
2024-03-10 14:26:17 -0400
1568aa9007
fix: redundancy applies to storage not downloads, and add debug logging per rate computed
Derrick Hammer
2024-03-10 14:14:36 -0400
5687e72a32
refactor: change SCPriceHistory table name
Derrick Hammer
2024-03-10 13:58:45 -0400
e425c038e1
fix: use config PriceHistoryDays
Derrick Hammer
2024-03-10 13:56:41 -0400
effb341418
refactor: don't block price updates, but do fatal on error
Derrick Hammer
2024-03-10 13:52:49 -0400
8c05180703
refactor: move price tracker init to a lifecycle
Derrick Hammer
2024-03-10 13:29:43 -0400
21ae6d093d
refactor: fetch redundancy settings and divide on it so price is always the total
Derrick Hammer
2024-03-10 13:25:33 -0400
c9683453c0
feat: add RedundancySettings getter
Derrick Hammer
2024-03-10 13:13:25 -0400
ae178f003f
refactor: put sia config under storage
Derrick Hammer
2024-03-10 13:06:33 -0400
b6683a5744
fix: default to debug if no config is passed, we will then error on config parsing after
Derrick Hammer
2024-03-10 13:02:31 -0400
39a39b00b7
fix: need prefix on setDefaultsForObject for core to be core
Derrick Hammer
2024-03-10 12:54:15 -0400
dd296bd78a
feat: add initial price tracker
Derrick Hammer
2024-03-10 12:41:42 -0400
736dc8aa9d
refactor: simplify sia upload to not try to parallel process as it corrupts data. We will come back to this optimization in the future.
Derrick Hammer
2024-03-10 11:54:32 -0400
6c60dae743
fix: if the render end is 0, ensure the range header is valid syntax and skip it
Derrick Hammer
2024-03-10 11:53:24 -0400
f56377df2b
dep: update libs5
Derrick Hammer
2024-03-10 09:17:46 -0400
8c0a2451e4
dep: update libs5
Derrick Hammer
2024-03-10 09:11:26 -0400
89bbd8b061
dep: update libs5
Derrick Hammer
2024-03-10 08:58:23 -0400
ce977da5c1
dep: update libs5
Derrick Hammer
2024-03-10 08:56:29 -0400
770e3335d1
dep: update libs5
Derrick Hammer
2024-03-10 08:41:21 -0400
ab5356f024
dep: update libs5
Derrick Hammer
2024-03-10 07:39:23 -0400
673cd535a0
dep: update libs5
Derrick Hammer
2024-03-10 07:26:05 -0400
1f1f204b35
fix: only return noop is we are SeekStart and want the beginning, otherwise this is likely actually needing to start a partial content seek
Derrick Hammer
2024-03-09 17:46:18 -0500
e89a9450e9
fix: don't tie contexts to tus http context
Derrick Hammer
2024-03-09 16:55:10 -0500
0c90924f31
refactor: add checking tus for metadata before uploads
Derrick Hammer
2024-03-09 15:37:58 -0500
f3040399e4
feat: add GetUploadSize
Derrick Hammer
2024-03-09 15:37:16 -0500
887f51f88d
fix: need to set upload id on siaUpload
Derrick Hammer
2024-03-09 14:45:31 -0500
4020b9f7c7
fix: S5File::Exists needs to check tus before uploads
Derrick Hammer
2024-03-09 14:27:07 -0500
d0d67d2ae5
dep: update libs5
Derrick Hammer
2024-03-09 13:23:07 -0500
1a1d34ef7a
dep: update libs5
Derrick Hammer
2024-03-09 07:17:13 -0500
1da600f1ca
dep: update libs5
Derrick Hammer
2024-03-09 07:00:55 -0500
2bff5d2b9e
refactor: switch to new libs5 kv db interface
Derrick Hammer
2024-03-09 06:58:32 -0500
5e31dc2f02
dep: update libs5
Derrick Hammer
2024-03-09 06:55:13 -0500
4261bb6a5d
refactor: if the file exists locally, pull from out own node before fetching it from the net
Derrick Hammer
2024-03-07 16:59:50 -0500
e489de1e86
dep: update libs5
Derrick Hammer
2024-03-07 16:54:57 -0500
8a6516e157
fix: if root return a file with that set
Derrick Hammer
2024-03-07 16:48:56 -0500
6e97b582ba
fix: pass Name to override using CID
Derrick Hammer
2024-03-07 16:48:20 -0500
3e4eed12ae
fix: typo
Derrick Hammer
2024-03-07 04:38:56 -0500
91d58ee87f
refactor: change login to respond with the jwt token in the body
Derrick Hammer
2024-03-06 18:11:34 -0500
550398c701
feat: add swagger spec and support to account api
Derrick Hammer
2024-03-06 04:58:04 -0500
6fb77d102a
refactor: add logic to find any unpinned files of a child manifest if the root is pinned but the children aren't
Derrick Hammer
2024-03-05 16:27:29 -0500
111d0a7ead
dep: update libs5
Derrick Hammer
2024-03-05 15:22:29 -0500
dcbc54cec5
refactor: set p2p.max_connection_attempts to 10
Derrick Hammer
2024-03-05 15:16:31 -0500
1f008c40b4
dep: update libs5
Derrick Hammer
2024-03-05 15:14:43 -0500