Skip to content
forked from 100Continue/Themis

Nginx module stack to suport updating configs dynamically.

Notifications You must be signed in to change notification settings

jinglong/Themis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Developing...

A set of Nginx modules to support to update Nginx modules'configs dynamically.

Config Example:

worker_processes  1;

error_log  logs/error.log debug;
#pid        logs/nginx.pid;

daemon off;
events {
    worker_connections  10240;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    themis_hash_max_size 1024;
    themis_hash_bucket_size 128;

    server {
        listen       8080;
        server_name  localhost;
        
        themis app1;
        location / {
            themis app2;
            root   html;
            index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }

    server {
        listen  8081;
        location / {
            themis_interface;
        }
    }
}

Config

Syntax: themis name

Default: none

Context: http svr loc

Every name stand for a group of themis-configs of different themis-modules.

Syntax: themis_interface

Default: none

Context: loc

This directive set the interface location where you can update nginx config.Restfull interface to Themis.

install:

./configure --add-module=/path/to/themis --add-module=/path/to/themis/modules/xxx_module
make
make install

About

Nginx module stack to suport updating configs dynamically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published