Commit Graph

43 Commits

Author SHA1 Message Date
Karol Wypchlo 185daf6a08
allow lua to use error pages 2022-05-19 15:49:48 +02:00
Karol Wypchlo 0772958064
use pairs instead of ipairs 2022-04-22 17:06:17 +02:00
Karol Wypchlo f88dcf3eee
include unit tests for uploader ip 2022-04-22 15:38:09 +02:00
Karol Wypchlo 39f9b4d196
fix headers 2022-04-22 15:19:07 +02:00
Karol Wypchlo 5301384609
do not include form header 2022-04-22 15:16:07 +02:00
Karol Wypchlo e8babb625e
try formvalue 2022-04-22 15:08:01 +02:00
Karol Wypchlo 20f6831eb0
track file uploader ip 2022-04-22 15:00:05 +02:00
Karol Wypchlo d27dca72d1
remove unused variable 2022-04-22 14:26:34 +02:00
Karol Wypchlo b88cdf6d76
track anon uploads 2022-04-22 14:23:01 +02:00
Karol Wypchlo ad090fd1ff
pass skylink from request context to /user/limits 2022-04-14 15:58:01 +02:00
Karol Wypchlo 2e39fb4736
remove spy stub that will never be called 2022-04-08 13:24:35 +02:00
Karol Wypchlo 1c3fcf6999
add newlines on eof 2022-04-08 11:51:53 +02:00
Karol Wypchlo 9b3e659ec5
lua testing and codecov v3 2022-04-06 15:14:44 +02:00
Karol Wypchło 65cb6a4c2a
include lua linter luacheck in github action (#1923) 2022-03-25 13:56:03 -04:00
Christopher Schinnerl a292a9e2a2
Merge pull request #1856 from SkynetLabs/ivo/nginx_passes_apikey
Nginx to pass Skynet-Api-Key and Authorization headers
2022-03-21 17:00:00 +01:00
Karol Wypchlo b42ac0678b
clean up cookie extraction 2022-03-21 14:31:53 +01:00
Karol Wypchlo d0de18fcd0
explain subscription mode 2022-03-21 13:29:48 +01:00
Karol Wypchło 5ede788667
Merge branch 'master' into improve-subscription-only-portal-communication 2022-03-21 13:20:00 +01:00
Karol Wypchło f47bd3f9a4
Merge branch 'master' into ivo/nginx_passes_apikey 2022-03-18 15:27:36 +01:00
Ivaylo Novakov 2f9f895ef8
Merge pull request #1855 from SkynetLabs/ivo/limits_bytes
Request /user/limits in bytes.
2022-03-17 16:22:33 +01:00
Karol Wypchlo e8345a3be6
extract is_table_empty to separate utils lib 2022-03-15 22:53:31 +01:00
Karol Wypchlo d631aad058
move req headers to timer arguments 2022-03-15 22:43:35 +01:00
Karol Wypchlo 4f6b5fb0a8
clean up nginx skylink cache related code 2022-03-15 09:40:25 +01:00
Ivaylo Novakov 2db648b0ad
Nginx passes Skynet-Api-Key and Authorization headers at all spots where it passes the Cookie header. 2022-03-10 18:11:37 +01:00
Ivaylo Novakov e40ca0011c
Request /user/limits in bytes. 2022-03-10 14:52:45 +01:00
Karol Wypchlo a743b625ff
Revert "Merge pull request #1831 from SkynetLabs/redirect-base64-skylink-to-base32"
This reverts commit e998882ca8, reversing
changes made to 85dd22a72e.
2022-03-10 09:55:24 +01:00
Karol Wypchlo 6189ec1617
improve user communication on subscription required portal 2022-03-09 14:27:27 +01:00
Karol Wypchlo 4dff19c6c7
remove internal tier 2022-03-08 04:02:01 +01:00
Karol Wypchło 0a669d8730
Merge branch 'master' into include-subscription-info 2022-03-06 13:58:23 +01:00
Karol Wypchlo fd05cfd8c9
redirect base64 skylink to base32 subdomain 2022-03-03 22:04:55 +01:00
Karol Wypchlo 30e8c886b9
use constants in tier defaults 2022-03-03 19:13:38 +01:00
Karol Wypchlo e1ddb3c3dc
include subscription info in internal accounts endpoint 2022-02-28 14:24:13 +01:00
Karol Wypchlo 04bced818f
never restrict options requests 2022-01-26 23:56:37 +01:00
Karol Wypchlo 4e240f2ad8
add option to limit access to subscription users only 2022-01-21 17:43:30 +01:00
Karol Wypchlo ce3b3d035d
check if blocklist is not null 2022-01-20 11:06:34 +01:00
Karol Wypchlo 46b4cdf0bf
fix empty check on nginx sourced env variable 2022-01-19 17:50:46 +01:00
Karol Wypchlo e4d2dffe86
allow to use skyd api password from env 2022-01-19 15:35:18 +01:00
Karol Wypchlo 4b74ced941
changed ACCOUNTS_AUTH_REQUIRED to ACCOUNTS_LIMIT_ACCESS string var for more flexibility 2022-01-12 14:05:25 +01:00
Karol Wypchlo c04fd5067d
introduce portals for authenticated users only 2022-01-11 17:07:57 +01:00
Karol Wypchlo d34366aefc
improve get_stale usage docs 2021-12-20 16:55:14 +01:00
Karol Wypchlo 5673f44d1a
blocklist improvements 2021-12-20 13:12:56 +01:00
Karol Wypchlo c4e771759b
unit tests 2021-11-05 17:12:01 +01:00
Karol Wypchlo a4ce3c935d
implement base32 decoder 2021-11-05 13:29:33 +01:00