served icon indicating copy to clipboard operation
served copied to clipboard

HTTPS support

Open aaalgo opened this issue 7 years ago • 6 comments

Is HTTPS support planned? Boost::asio supports SSL, so it seems to me HTTPS is not really out of reach.

aaalgo avatar Nov 21 '16 04:11 aaalgo

A little web search leads to https://github.com/eidheim/Simple-Web-Server , which is a similar project with HTTPS support. It's implemented by having socket_type as a template parameter.

aaalgo avatar Nov 21 '16 05:11 aaalgo

I met Simple-Web-Server and then served served is more attractive for me, because of its more higher level APIs. That's great for developers who know little about HTTP protocol details and want just a quick integration of REST web API. But served development seems not quite active. That's another concern.

xoox avatar Dec 21 '16 02:12 xoox

I recently had a problem serving large images with served. The problem disappeared after I switched to Simple-Web-Server, so I didn't botther to debug. I agree that the API of Simple-Web-Server is of a lower level. I've coded up a little wrapper for it. https://github.com/aaalgo/Simple-Web-Extra

aaalgo avatar Dec 21 '16 02:12 aaalgo

A wrapper is great. What size of your picture and the type? I'm going to server RGB png pictures of 2592 x 1944, maybe the same issue would be encountered. Have you open a detailed issue about the large images serving? Maybe it can be fixed.

xoox avatar Dec 21 '16 03:12 xoox

Why not just run served behind a nginx reverse proxy? All in nice docker containers to boot.

kiyoMatsui avatar May 11 '20 19:05 kiyoMatsui

+1 for feature.

Embedded SSL support would be great for service-to-service communication.

makkarpov avatar Nov 17 '20 20:11 makkarpov