Commit Graph

92 Commits

Author SHA1 Message Date
blek f91625729c fix any request being treated as a GUI upload form 2023-12-14 11:56:46 +01:00
blek caaae9b9ae add upload route 2023-12-14 11:56:46 +01:00
blek cdbcd0e158 implement the /api/files/delete method 2023-12-14 11:56:46 +01:00
blek a7ce3bbc21 respect the config.api.METHOD config values 2023-12-14 11:56:46 +01:00
blek e0577a66ae move out the api check code 2023-12-14 11:56:46 +01:00
blek ea15e25fe2
hardcode the midfix variable 2023-12-11 02:42:52 +10:00
blek e84ddee2a4
refactor code for readability 2023-12-09 22:14:09 +10:00
blek 080498d80c
fix #23 2023-12-09 22:13:42 +10:00
blek 72abd4d5bd
add a ToS switch 2023-11-03 00:08:45 +10:00
blek 79ef0634f9
web UI for curlapi/help 2023-11-02 23:44:46 +10:00
blek aca37bc52b
curl API help 2023-11-02 20:00:39 +10:00
blek 164af11b8b
fix compile warning 2023-11-02 19:01:21 +10:00
blek 9ccd3d6212
scratch curl API 2023-11-01 19:19:51 +10:00
blek 12614078ad
print version at the footer 2023-10-29 19:44:31 +10:00
blek 8d5d739568
include branch data 2023-10-29 19:14:58 +10:00
blek d09f88f7fa
load commit hash at compile time 2023-10-29 19:11:38 +10:00
blek b7b303afb3
remove warp static dir in favor of static_dir! macro 2023-10-29 19:00:54 +10:00
blek 22444beba4
check for password server side 2023-10-27 20:12:08 +10:00
blek 6617efc9fe
add upload_pass config option 2023-10-27 20:12:00 +10:00
blek e81a5e3ec3
fix compile warnings 2023-10-27 01:19:30 +10:00
blek e91e40e0fc
attach user ip to the file record 2023-10-26 23:54:47 +10:00
blek dd4fc52c98
get client ip on upload action 2023-10-26 18:30:35 +10:00
blek 6f9ef9be69
fix proxy ip getter 2023-10-26 18:30:21 +10:00
blek c1220cac79
refactor forms to be more readable 2023-10-26 18:27:57 +10:00
blek 0cdf8fe7fc
add trust proxy env config 2023-10-23 20:54:15 +10:00
blek bc6f8921fb
add server side checks for pass and custom name 2023-10-23 13:21:50 +10:00
blek 5d8b8648cb
add debug mode notice 2023-10-23 13:17:40 +10:00
blek 8d3b81244d
just rewrite the fucking upload method, its too buggy to fix 2023-10-23 01:24:38 +10:00
blek 2af8e44dd9
change path to comply with swagger spec 2023-10-22 15:16:47 +10:00
blek f8172d7e61
move out the files api to a different folder 2023-10-22 15:16:13 +10:00
blek 5d05f7190a
implement /api/get_all 2023-10-22 14:22:19 +10:00
blek 1353145014
API config settings 2023-10-22 13:44:05 +10:00
blek cb933d12dc
remove max_per_ip config param
may be implemented later
2023-10-21 16:10:29 +10:00
blek 5f65a171dd
add config checks on backend 2023-10-21 16:09:36 +10:00
blek 93d94b8431
add ui banner wall when file uploads are disabled 2023-10-21 13:52:03 +10:00
blek f53dc248c9
fix dead link 2023-10-21 12:26:53 +10:00
blek 6238bdf94e
remove instance_url as it is not needed 2023-10-21 12:10:14 +10:00
blek 462f171a5b
add branding emoji property 2023-10-21 12:06:21 +10:00
blek 2df56a67ea
make all the fields public 2023-10-21 11:56:33 +10:00
blek 352444198f
add instance motto config option 2023-10-21 11:55:07 +10:00
blek 6a95446ebe
move branding options to another field 2023-10-21 11:53:14 +10:00
blek 7c3aab8515
pass config to views 2023-10-21 01:49:36 +10:00
blek 04b52bde74
add a few log messages 2023-10-21 01:35:13 +10:00
blek d8cdef2feb
try to also create the config directory 2023-10-21 01:34:09 +10:00
blek fada0ebc6c
write example if not found 2023-10-21 01:31:08 +10:00
blek 23b466ade2
change default config path to a file 2023-10-21 01:12:52 +10:00
blek 26f40621c9
basic config 2023-10-21 01:12:16 +10:00
blek 06a281aa08
trade up unnecessary security for speed 2023-10-15 17:38:20 +10:00
blek f6230ee51a
make the pass change a bit longer 2023-10-15 17:25:20 +10:00
blek 815cab46f2
fix expired method 2023-10-15 17:19:16 +10:00