A set of Nginx modules to support to update Nginx modules'configs dynamically.
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;
}
}
}
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.
./configure --add-module=/path/to/themis --add-module=/path/to/themis/modules/xxx_module
make
make install