- Updated package name in Cargo.toml: nginx-test → sqlite-serve - Updated library name: libnginx_test.dylib → libsqlite_serve.dylib - Updated all load_module directives in nginx configs - Updated build checks in start scripts - Updated branding in footer template - Updated project name in all README files The name 'sqlite-serve' better reflects the module's purpose: serving dynamic content from SQLite databases via NGINX.
27 lines
641 B
Plaintext
27 lines
641 B
Plaintext
# Add the path to your library here.
|
|
load_module target/debug/libsqlite_serve.dylib;
|
|
|
|
worker_processes 1;
|
|
|
|
events {}
|
|
|
|
#Uncomment and add a log file path if desired
|
|
error_log logs/error.log debug;
|
|
|
|
http {
|
|
# Optional: Global templates directory for shared partials/layouts
|
|
# sqlite_global_templates "server_root/global_templates";
|
|
|
|
server {
|
|
listen 8080;
|
|
|
|
root "server_root";
|
|
location /people {
|
|
add_header "Content-Type" "text/html";
|
|
sqlite_db "db.sqlite3";
|
|
sqlite_query "SELECT id, name, address FROM person";
|
|
sqlite_template "person.hbs";
|
|
}
|
|
}
|
|
}
|