1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-17 23:59:44 +00:00

Add option to build http server (#648)

* Add option to build httpserver

* Add option to build libevhtp

* Delete unused option

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2024-03-13 19:38:44 +08:00
committed by GitHub
parent bd6b87c2e5
commit 98315cce73
19 changed files with 146 additions and 90 deletions

View File

@@ -1,6 +1,7 @@
#ifndef HTTP_SERVER_H
#define HTTP_SERVER_H
#ifdef HAVE_EVHTP
#include <glib.h>
struct _SeafileSession;
@@ -16,11 +17,7 @@ struct _HttpServerStruct {
int bind_port;
char *http_temp_dir; /* temp dir for file upload */
char *windows_encoding;
gint64 fixed_block_size;
int web_token_expire_time;
int max_indexing_threads;
int worker_threads;
int max_index_processing_threads;
int cluster_shared_temp_file_mode;
};
@@ -38,5 +35,6 @@ seaf_http_server_invalidate_tokens (HttpServerStruct *htp_server,
void
send_statistic_msg (const char *repo_id, char *user, char *operation, guint64 bytes);
#endif
#endif