{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1754558305,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{ "schema":"libjg2-1",
"oid":{ "oid": "cb1e893e2dc3bed755cd258a2f8bedd6bad7c335", "alias": []},"tree": [
{ "name": "mount-origin","mode": "16384", "size":0},
{ "name": "uploads","mode": "16384", "size":0},
{ "name": "CMakeLists.txt","mode": "33188", "size":1122},
{ "name": "README.md","mode": "33188", "size":2105},
{ "name": "ba-passwords","mode": "33188", "size":30},
{ "name": "localhost-100y.cert","mode": "33188", "size":2106},
{ "name": "localhost-100y.key","mode": "33188", "size":3272},
{ "name": "minimal-http-server-deaddrop.c","mode": "33188", "size":5033}],"s":{"c":1754558305,"u": 575}}
,{"schema":"libjg2-1",
"cid":"12da1da2d51d46bf5fae543f13ad8241",
"oid":{ "oid": "cb1e893e2dc3bed755cd258a2f8bedd6bad7c335", "alias": []},"blobname": "minimal-examples/http-server/minimal-http-server-deaddrop/README.md", "blob": "# lws minimal http server deaddrop\n\nThis demonstrates how you can leverage the lws deaddrop plugin to make a\nsecure, modern html5 file upload and sharing application.\n\nThe demo is protected by basic auth credentials defined in the file at\n./ba-passwords - by default the credentials are user: user1, password: password;\nand user: user2, password: password again.\n\nYou can upload files and have them appear on a shared, downloadable list that\nis dynamically updated to all clients open on the page. Only the authenticated\nuploader is able to delete the files he uploaded.\n\nMultiple simultaneous ongoing file uploads are supported.\n\n## build\n\nTo build this standalone, you must tell cmake where the lws source tree\n./plugins directory can be found, since it relies on including the source\nof the raw-proxy plugin.\n\n```\n $ cmake . -DLWS_PLUGINS_DIR\u003d~/libwebsockets/plugins \u0026\u0026 make\n```\n\n## usage\n\n```\n $ ./lws-minimal-http-server-deaddrop\n[2018/12/01 10:31:09:7108] USER: LWS minimal http server deaddrop | visit https://localhost:7681\n[2018/12/01 10:31:09:8511] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off\n[2018/12/01 10:31:09:8522] NOTICE: Using SSL mode\n[2018/12/01 10:31:10:0755] NOTICE: SSL ECDH curve 'prime256v1'\n[2018/12/01 10:31:10:2562] NOTICE: lws_tls_client_create_vhost_context: doing cert filepath localhost-100y.cert\n[2018/12/01 10:31:10:2581] NOTICE: Loaded client cert localhost-100y.cert\n[2018/12/01 10:31:10:2583] NOTICE: lws_tls_client_create_vhost_context: doing private key filepath\n[2018/12/01 10:31:10:2593] NOTICE: Loaded client cert private key localhost-100y.key\n[2018/12/01 10:31:10:2596] NOTICE: created client ssl context for default\n[2018/12/01 10:31:10:5290] NOTICE: deaddrop: vh default, upload dir ./uploads, max size 10000000\n[2018/12/01 10:31:10:5376] NOTICE: vhost default: cert expiry: 730203d\n...\n```\n\nVisit https://localhost:7681, and follow the link there to the secret area.\n\nGive your browser \u0022user1\u0022 and \u0022password\u0022 as the credentials. For testing to\nconfirm what a different user sees, you can also log in as \u0022user2\u0022 and\n\u0022password\u0022.\n\n","s":{"c":1754558305,"u": 150}}
],"g": 2087,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}