
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
@jolie/leonardo
Advanced tools
This is Leonardo, a web server written in Jolie.
You can use Leonardo as is, to host static files, or as a powerful server-generated pages framework. The implementation of server-generated pages is left to the user, by using hooks (defined as Jolie services). See Fabrizio's website for an example using templates and external services.
Leonardo uses plain HTTP for serving content. To add encryption (HTTPS), we recommend combining it with a reverse proxy (for example, we like linuxserver/letsencrypt).
If you have Docker installed and you just want to host some static content, using Leonardo is really quick.
First, pull the image from Docker Hub: docker pull jolielang/leonardo.
Assume that you have your static content in directory myWWW (replace this with your actual directory), then you can just run the following command and Leonardo will start.
docker run -it --rm -v "$(pwd)"/myWWW:/web -e LEONARDO_WWW=/web -p 8080:8080 jolielang/leonardo
Go ahead and browse http://localhost:8080/.
If you simply want to use Leonardo to host some static content, you can run it as it is.
You just have to tell Leonardo where the static content is located. You can do it in two ways:
/var/www, then you should run the command jolie launcher.ol /var/www.LEONARDO_WWW. In this case, you just need to invoke jolie launcher.ol.Here is a Dockerfile that creates an image for a website whose content is stored in directory myWWW.
FROM jolielang/leonardo
ENV LEONARDO_WWW /web
COPY myWWW $LEONARDO_WWW
EXPOSE 8080
FAQs
The Jolie Web Server
We found that @jolie/leonardo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.