Commit Graph

42 Commits

Author SHA1 Message Date
c9f43c152d Fix space handling in url_en/decode 2026-06-17 17:34:07 +02:00
12222e9a0f Leave / intact 2026-06-17 17:34:07 +02:00
0208a7549c Tests and fixes for url_decode 2026-06-17 17:34:07 +02:00
434dca7fe7 Tests and fixes for url_encode 2026-06-17 17:34:07 +02:00
05f318233b Pull out libusers 2026-06-17 17:34:07 +02:00
8aab365e14 Update makefile with some libraries compiled separately 2026-06-17 17:34:07 +02:00
f0267d7a5c Implement url en/decoding 2026-06-17 17:34:07 +02:00
1be63ce749 Simple url encoding for spaces 2026-06-17 17:34:07 +02:00
9e09114264 One more missing parameter for build_path 2026-06-17 17:34:07 +02:00
1a2ff3eb3b Handle sigterm so application reacts to docker stopping 2026-06-17 17:34:07 +02:00
1c5afe4092 More preparation for running in docker 2026-06-17 17:34:07 +02:00
0ab6904c11 Add logging and fix incorrect get_path calls 2026-06-17 17:34:07 +02:00
d349d77085 Allow .. in paths for userctl 2026-06-17 17:34:07 +02:00
48c52772cb userctl: Place library path before command 2026-06-17 17:34:07 +02:00
6ca91a33be Implement authorization
Read username from user config, check existence of user and then check password.
2026-06-17 17:34:07 +02:00
87b7015f17 Remove some trailing whitespace 2026-06-17 17:34:07 +02:00
2910c44352 Create user folder on registering 2026-06-17 17:34:07 +02:00
8132ecd9d8 Implement deleting a user 2026-06-17 17:34:07 +02:00
2961345bea Implement listing users 2026-06-17 17:34:07 +02:00
0894243a43 noh.h: noh_file_exists and some documentation 2026-06-17 17:34:07 +02:00
998c0bd994 Implement userctl user registering 2026-06-17 17:34:07 +02:00
68bb993d1a Implement hashing of username and password 2026-05-29 20:01:05 +02:00
f343c86800 Rename main to server and add empty executable userctl 2026-05-28 12:53:43 +02:00
22b796ae26 Implement get handler 2026-05-19 14:46:24 +02:00
cd0ef696d7 Split up main.c while keeping a single compilation unit 2026-05-17 14:30:52 +02:00
87db03d189 Generate ids 2026-05-17 14:00:33 +02:00
cd0cb20195 Fill in all elements except id 2026-05-15 21:45:45 +02:00
5b7d9f7b2b Fully implement building entries
Including name and full path
2026-05-15 15:18:14 +02:00
141da4b456 opds: Send full xml structure with TODO placeholders 2026-05-15 14:01:17 +02:00
df30039c25 Use MB suffix for arena initialization 2026-05-15 11:35:32 +02:00
c71af590d8 Load modified time and extract creation of entry 2026-05-15 11:33:49 +02:00
317a4d576b Return list of dirs and files from OPDS request 2026-05-14 21:40:16 +02:00
538cfdafa5 noh.h: Add noh_sv_copy_cstr and noh_sv_compare 2026-05-14 21:39:51 +02:00
5ecf3cdb8e Start listing entries in directory 2026-05-08 15:50:18 +02:00
55b91e4f84 Check if requested OPDS dir exists 2026-05-05 16:34:11 +02:00
93e8bf6673 Include sha256 implementation 2026-05-05 11:31:43 +02:00
45094ff008 Format requested file path in OPDS handler 2026-05-04 15:04:11 +02:00
d107c58da7 noh.h: noh_string_append_sv 2026-05-04 15:01:57 +02:00
53c5155078 Make clear that server listens on all interfaces 2026-05-04 14:36:34 +02:00
6421ab300b Take config as commandline parameters 2026-05-04 14:29:34 +02:00
9ed13e0c45 Simple routing and basic auth header checking 2026-05-02 20:30:44 +02:00
8bb4fb1ab7 Simple example using libmicrohttpd 2026-05-01 16:15:33 +02:00