The Wayback Machine - https://web.archive.org/web/20201109032447/https://github.com/maelswarm/cerver
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

cerver

This project is in development... It's not ready for a production environment.

Install

git clone git@github.com:roecrew/cerver.git
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem
make

Usage

Name the SSL key "key.pem" and certificate "cert.pem".

Edit routes in main.c

void construct_routes() {
  routeMap = hmap_create(0,1.0);
  hmap_set(routeMap, "/", "./build/home.html");
  hmap_set(routeMap, "/main.js", "./build/main.js");
  //add routes...
}

About

A Seriously Simple HTTPS Server

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.