Files
nginx-serve/conf/howto.conf
Edward Langley 63fbee6694 Fix ngx 0.5.0 API compatibility
- Update HttpModule trait implementation to match ngx 0.5.0 API
- Implement HttpModuleLocationConf as separate unsafe trait
- Fix configuration access using Module::location_conf()
- Replace ngx_null_command macro with explicit null command
- Update imports to use correct constant names
- Suppress C FFI naming convention warnings
2025-11-15 14:26:39 -08:00

23 lines
471 B
Plaintext

# Add the path to your library here.
load_module target/debug/libnginx_test.dylib;
worker_processes 1;
events {}
#Uncomment and add a log file path if desired
error_log logs/error.log debug;
http {
server {
listen 8080;
location / {
add_header "Content-Type" "text/html";
sqlite_db "db.sqlite3";
sqlite_query "SELECT id, name, address FROM person";
sqlite_template "person.hbs";
}
}
}