Commit graph

54 commits

Author SHA1 Message Date
jj
bc597c817f
api: move itunnel handlers to separate file 2024-12-16 10:38:31 +00:00
jj
f06aa65801
api: always create separate server for itunnels 2024-12-16 10:19:15 +00:00
jj
e7c2872e40
api/stream: rename getInternalStream to getInternalTunnel 2024-12-16 10:16:48 +00:00
jj
382873dc11
api/core: fix main cluster being unable to handle itunnels 2024-11-02 09:59:48 +00:00
jj
2317da5ba5
api: add support for redis to ratelimiter cache 2024-11-01 13:26:18 +00:00
jj
d466f8a4af
api: upgrade express-rate-limit to v7, reuse key generator 2024-11-01 12:54:16 +00:00
jj
66cb8d360d
api: move hmac secrets to single file 2024-11-01 12:16:53 +00:00
jj
40d6a02b61
api: cluster support
still missing synchronization for some structures
2024-10-31 22:59:06 +00:00
jj
132255b004
api/stream/manage: use cobalt Store for stream cache 2024-10-31 22:33:32 +00:00
wukko
cdfc91844d
api/schema: update youtubeDubLang to accept all valid language codes 2024-10-28 19:56:18 +06:00
jj
7dc0121031
api: defer file loads until api is running 2024-10-27 18:12:59 +00:00
jj
5a5a65b373
api/cookies: trigger cookie load from api entrypoint 2024-10-27 18:10:57 +00:00
jj
d55dddea2e
core/api: normalize bearer authorization 2024-10-20 10:05:34 +00:00
dumbmoron
9cc6fd13fa
api/core: skip turnstile verification if user authed with api key 2024-10-04 17:37:57 +00:00
dumbmoron
81818f8741
api/core: implement authentication with api keys 2024-10-04 16:50:55 +00:00
dumbmoron
dcd33803c1
api/core: generate JWT rate limiting key in auth handler 2024-10-04 17:03:57 +00:00
dumbmoron
418602ca87
api/core: add rate limiter for session 2024-10-04 17:02:00 +00:00
dumbmoron
38fcee4a50
api/core: rename tunnel limiter, move to endpoint 2024-10-04 17:00:58 +00:00
dumbmoron
f2248d4e9a
api/core: move api limiter after authentication 2024-10-04 16:59:53 +00:00
dumbmoron
034f7ebe4a
api/core: extract rate limit response to function 2024-10-04 16:58:15 +00:00
wukko
2a42ed38b6
repo: merge new commits from main into develop 2024-09-23 20:27:32 +06:00
wukko
0cc18b488c
api/core: return public turnstile sitekey in server info 2024-09-17 22:40:07 +06:00
dumbmoron
29f967a3ec
api: fix accept & content-type validation when not using authentication 2024-09-17 15:37:21 +00:00
dumbmoron
57c9836f56
api/core: move ratelimiters before authentication handler 2024-09-09 14:21:19 +00:00
wukko
3317726afe
api/core: rename req and next args to indicate that they're unused 2024-09-09 19:44:40 +06:00
wukko
0aae3fe7f0
api/core: rename err argument to indicate that it's unused 2024-09-09 19:41:44 +06:00
wukko
97866fb306
api/core: update the emoticon in startup message 2024-09-05 07:53:55 +06:00
wukko
fff1c6c7a6
web & api: rename stream to tunnel
- updated the endpoint to /tunnel
- updated status to tunnel
- fixed one incorrectly named error in web
2024-09-05 00:26:48 +06:00
wukko
8cee4e58c5
api/match: accept object as single argument
hi im what i do
2024-09-02 08:27:31 +06:00
wukko
d9925f2233
api/core: move friendly name map to server info 2024-09-01 16:02:06 +06:00
dumbmoron
2f63f6bab7
api/proxy: add support for proxying range requests 2024-08-31 07:15:20 +00:00
wukko
7f8204bc0c
api/core: handle all express errors, not just path parsing (wtf) 2024-08-30 14:25:46 +06:00
wukko
7041d61d80
api/core: fix link parsing error handling 2024-08-24 16:13:42 +06:00
wukko
70264f3691
api/core: update server info
- cache server info as string
- serve a list of services & duration limit in server info
2024-08-23 00:33:52 +06:00
wukko
7a557a97c3
api: move service disabling to DISABLED_SERVICES env 2024-08-23 00:16:26 +06:00
wukko
a21c9e7632
api/core/api: clean up imports 2024-08-22 23:04:11 +06:00
wukko
1f3509db07
api: update error codes in api core functions 2024-08-19 21:51:45 +06:00
wukko
974b98f0ac
api/core: fix & clean up auth middleware 2024-08-17 00:59:59 +06:00
wukko
30c51b9fe8
api/core: rate limit by token if it's present 2024-08-17 00:55:26 +06:00
wukko
c54294601b
api/core: limit authorization header length 2024-08-17 00:13:26 +06:00
wukko
51bd2f72fd
api/core: fix typo 2024-08-16 23:41:20 +06:00
wukko
16acf62886
api/security: jwt session token 2024-08-16 23:28:03 +06:00
wukko
4283774c6c
api: add support for cloudflare turnstile 2024-08-16 00:10:17 +06:00
dumbmoron
f32f624916
api: use zod for request schema validation 2024-08-08 16:34:54 +00:00
wukko
f96c1cd13b
api: remove deprecated statuses & clean up related code 2024-08-06 20:45:04 +06:00
dumbmoron
94c2545ca6
api/serverInfo: make cors into boolean 2024-08-03 17:11:18 +00:00
wukko
5ea71ee58e
api: update post parameters
they're now way easier to read
2024-08-03 23:06:32 +06:00
wukko
3bd1a00855
api: renovate endpoints
no more redundant "/api" path
2024-08-03 21:51:05 +06:00
wukko
40425ad3bf
api: use version-info package & clean up start message 2024-08-03 21:34:02 +06:00
wukko
dd831e13e8
api: flatten code directories, better filenames, remove old files 2024-08-03 14:47:13 +06:00