Skip to content

maelswarm/cerver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published