GitHub - webcpp/hi-nginx: A fast and robust web server and application server fo...
source link: https://github.com/webcpp/hi-nginx
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Features
- All features of nginx(latest release) are inherited, i.e., it is 100% compatible with nginx.
- Web development using python, c++, lua, java
Document
Installation
./configure --help
or see install_demo.sh
or
--add-module=module/ngx_http_autoblacklist_module \
--with-http-hi-lua-version=lua5.3 \
--add-module=module/ngx_http_lua_module \
--with-http-hi-python-version=python-3.8-embed \
--add-module=module/ngx_http_py_module \
--add-module=module/ngx_http_java_module \
--add-module=module/ngx_http_cpp_module
nginx.conf
server {
listen 80;
server_name localhost;
autoblacklist on;
autoblacklist_size 1024;
autoblacklist_expires 1d;
autoblacklist_limit 30;
location ~ \.cdp {
cpp_load;
cpp_search_path "/usr/local/nginx/app/cpp";
cpp_uri_pattern ".*\.cdp$";
cpp_expires 1m;
}
location ~ \.pdp {
py_load;
py_search_path "/usr/local/nginx/app/python";
py_uri_pattern ".*\.pdp$";
py_expires 1m;
}
location ~ \.ldp {
lua_load;
lua_package_search_path "/usr/local/nginx/app/lua/?.lua;/usr/local/nginx/app/lua/package/?.lua";
lua_cpackage_search_path "/usr/local/nginx/app/lua/?.so;/usr/local/nginx/app/lua/cpackage/?.so";
lua_uri_pattern ".*\.ldp$";
lua_memory_limit 50;
lua_expires 1m;
}
location ~ \.jdp {
java_load;
java_class_path "-Djava.class.path=.:/usr/local/nginx/app/java:/usr/local/nginx/app/java/hi-nginx-java.jar:/usr/local/nginx/app/java/mariadb-java-client-2.7.4.jar:/usr/local/nginx/app/java/mysql-connector-java-8.0.26.jar:/usr/local/nginx/app/java/druid-1.2.6.jar:/usr/local/nginx/app/java/demo.jar";
java_options "-server -d64 -Dconfig.file=/usr/local/nginx/app/java/application.conf";
java_servlet "hi/controller";
java_uri_pattern ".*\.jdp$";
java_expires 1m;
java_version 11;
}
location / {
access_log off;
root html;
index index.html index.htm;
}
}
Recommend
-
2
Lighting fast, zero-downtime deployments with git, capistrano, nginx and Unicorn Posted: 2011-09-14 - Last updated: 2019-06-05 ...
-
1
Series: Building Robust Security for your ApplicationPart 1: The Application Part 2: The Database Par...
-
1
Series: Building Robust Security for your ApplicationPart 1: The Application (Basics & Definitions) Part...
-
4
Series: Building Robust Security for your Application Part 1: The Application
-
4
README.md The lightning-fast ASGI server.
-
4
Clevyr Insights Building Robust Database Application Security Part 2: The Database Written By: Aaron Krauss Published Dece...
-
5
FastWSGI FastWSGI is still under development. FastWSGI is an ultra fast WSGI server for Python 3. ...
-
3
Typescript Create scalable, robust and enterprise level React Native Typescript applications Aug 03, 2022 4 min read
-
4
Conveyor MQ A fast, robust and extensible distributed task/job queue for Node.js, powered by Redis. Introduction Conveyor MQ is a general purpose, distributed task/job queue for Node.js, powered by Redis. Conveyor M...
-
4
River: a Fast, Robust Job Queue for Go + Postgres
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK