server: add auth proxy support

This commit is contained in:
Shuanglei Tao
2021-08-12 00:19:48 +08:00
parent b2cda1d68c
commit e402edf13c
9 changed files with 113 additions and 75 deletions

View File

@@ -1,3 +1,4 @@
#include <libwebsockets.h>
#include <stdbool.h>
#include <uv.h>
@@ -58,6 +59,7 @@ struct server {
int client_count; // client count
char *prefs_json; // client preferences
char *credential; // encoded basic auth credential
char *auth_header; // header name used for auth proxy
char *index; // custom index.html
char *command; // full command line
char **argv; // command with arguments