Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webcpp/hi-nginx
A fast and robust web server and application server for C++,Python,Lua ,Java language
https://github.com/webcpp/hi-nginx
application-server cpp groovy hi-nginx http java javascript jsr-223 jvm-languages lua nginx php php7 python server web web-server
Last synced: 5 days ago
JSON representation
A fast and robust web server and application server for C++,Python,Lua ,Java language
- Host: GitHub
- URL: https://github.com/webcpp/hi-nginx
- Owner: webcpp
- License: bsd-2-clause
- Created: 2017-04-06T02:16:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-02T21:10:33.000Z (about 1 month ago)
- Last Synced: 2024-11-21T15:43:49.843Z (22 days ago)
- Topics: application-server, cpp, groovy, hi-nginx, http, java, javascript, jsr-223, jvm-languages, lua, nginx, php, php7, python, server, web, web-server
- Language: C
- Homepage:
- Size: 96.5 MB
- Stars: 377
- Watchers: 46
- Forks: 72
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- favorite-link - 快速而强大的 Web 服务器和应用程序服务器。
README
# 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
[https://github.com/webcpp/hi-nginx-tutorial](https://github.com/webcpp/hi-nginx-tutorial)
# Installation
`./configure --help` or see `install_demo.sh` or```shell
--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
```nginx
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";
lua_package_search_path "/usr/local/nginx/app/lua/package/?.lua";
lua_cpackage_search_path "/usr/local/nginx/app/lua/?.so";
lua_cpackage_search_path "/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 "/usr/local/nginx/app/java/hi-nginx-java.jar";
java_class_path "/usr/local/nginx/app/java/gson-2.8.6.jar";
java_class_path "/usr/local/nginx/app/java/app.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;
}}
```