Commit graph

109 commits

Author SHA1 Message Date
default
5f5e4b587e Backport from xs. 2023-09-23 22:02:52 +02:00
default
1d00c4ef66 The nodeinfo file returns more useful information. 2023-08-21 22:49:46 +02:00
default
26f2c40579 The hash 'more_headers' is added to the response HTTP headers. 2023-08-19 12:52:28 +02:00
default
86571f37bb The instance URL can now show a timeline. 2023-08-14 11:24:41 +02:00
default
4c14a2e93c Sanitize local user names in the greeting page. 2023-08-14 09:32:17 +02:00
default
07be3721c1 Some mastoapi tweaks to support the semaphore.social web client. 2023-08-12 21:46:54 +02:00
default
94149d262d Archive unattended method errors. 2023-08-12 19:09:09 +02:00
default
0f8c0cd694 Updated comment in headers. 2023-07-28 11:34:18 +02:00
Yonle
25bb8f0dd2 Rollback to 86f507410b for some reasons.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 22:56:18 +07:00
Yonle
75e061a9f7 html.c & httpd.c: Fix hardlink.
Some people may still want to post in the web client with such different
way, Such as posting from Yggdrasil / SSH port forwarder, and so on.

This commit gives the workaround for that purpose, However things will
go messed up when current path were ends with / (Like: user/, admin/).

But overall, If user just uses it like normal, Then things will just
worked well as expected.

Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 19:42:20 +07:00
default
d343b40ee5 Added HTTP caching to static data. 2023-07-02 11:11:01 +02:00
default
2f3ed55790 The WWW-Authenticate real also includes the user. 2023-06-24 08:29:29 +02:00
default
3da32bd327 Fixed missing end quote in the WWW-Authenticate header. 2023-06-24 08:07:46 +02:00
default
7eb80e9916 Renamed the HTTP Basic auth realm to something more informative. 2023-06-18 19:34:35 +02:00
default
8c91956947 Replace an sprintf() with an snprintf(). 2023-06-05 18:36:36 +02:00
default
65f5173c2a Moved srv_running variable to httpd.c. 2023-06-05 18:18:50 +02:00
default
efec8a6eae If sem_open() fails, try again with sem_init(). 2023-05-25 17:20:21 +02:00
default
970ad7a540 Got rid of xs_encdec.h. 2023-05-17 10:08:57 +02:00
default
a15ec49a1d Fixed conflict. 2023-05-09 17:22:31 +02:00
poesty
3bd83457d9 Fixed the issue of semaphore name conflicts. 2023-05-09 23:11:57 +08:00
default
920ff76297 Print the total running time at httpd stop. 2023-05-08 09:34:27 +02:00
default
6bad2355ef Moved sem_close() further to the end. 2023-05-08 09:17:00 +02:00
default
2824ba5be3 Added some includes needed for last sem_open() / uintptr_t changes. 2023-05-07 17:58:11 +02:00
Saagar Jha
e25960c548 Fix pointer-to-int cast
Resolves "warning: performing pointer subtraction with a null pointer
has undefined behavior [-Wnull-pointer-subtraction]"
2023-05-07 04:19:37 -07:00
Saagar Jha
578c94ba69 Use named semaphores
Unnamed semaphores are not supported on macOS.
2023-05-07 04:18:30 -07:00
default
185aac2387 Added -Wextra to C flags. 2023-05-04 09:28:36 +02:00
default
753eadfd17 Added some const here and there. 2023-05-04 09:25:09 +02:00
default
997b17d854 Moved JSON output validation to httpd.c. 2023-04-23 15:37:09 +02:00
default
8804227798 New function mastoapi_put_handler(). 2023-04-22 01:21:09 +02:00
default
526d4e8abb Added a new compilation variable NO_MASTODON_API.
The Mastodon API is a big and ugly beast; if you don't want
it in your snac, you can compile it out by running

make CFLAGS=-DNO_MASTODON_API

And your snac binary will be as slim as always.
2023-04-21 23:17:58 +02:00
default
bd539b8350 Replace %admin_email% in greeting.html. 2023-04-20 18:12:56 +02:00
default
c0a48f1f4e Added support for likes and boosts. 2023-04-11 21:07:47 +02:00
default
4ced03bac1 OAuth login now works. 2023-04-09 20:34:05 +02:00
default
4964a56456 More mastoapi work. 2023-04-08 09:09:43 +02:00
default
eba6987fd5 Added some OAuth scaffold code. 2023-04-08 07:04:40 +02:00
default
353e393f4d New file mastoapi.c. 2023-04-08 06:09:05 +02:00
default
14cbf124f9 More log level tweaks. 2023-04-04 10:40:22 +02:00
default
b2ce9323db Added the url to srv_archive(). 2023-03-02 17:13:17 +01:00
default
5036cb5e11 Connection jobs are treated as urgent. 2023-03-02 12:38:02 +01:00
default
60c50c02f6 Create sleep mutex and cond variable only once. 2023-02-22 10:35:26 +01:00
default
295507fd9e Close everything if xs_socket_accept() returns NULL. 2023-02-22 10:02:24 +01:00
default
3283536cfa Deleted useless code. 2023-02-22 09:31:18 +01:00
default
2bfebba7be Don't wait for 3 seconds if there were some q_items processed. 2023-02-22 08:39:54 +01:00
default
7e27ccfde8 Try to show a piece of the error after connecting. 2023-02-14 08:15:43 +01:00
default
28d1da0a81 Don't fail silently if the job fifo is not ready. 2023-02-11 06:28:36 +01:00
default
381129fb25 Move the #fds log line to dbglevel 0. 2023-02-10 13:53:12 +01:00
default
5f89816bb4 Show (dbglevel 1) the number of file descriptors available. 2023-02-10 13:45:26 +01:00
default
03325d04a5 Show the fd rlimit at httpd startup. 2023-02-10 13:39:17 +01:00
default
d4979d9403 Added more job_fifo concurrency protections. 2023-02-10 11:23:42 +01:00
default
3ba3815b64 Fixed 32bit arch warnings when passing the thread id. 2023-02-10 09:07:54 +01:00