Files
2026-09-13 16:39:28 -06:00

38 lines
562 B
Nginx Configuration File

worker_processes ${{num_workers}};
error_log stderr notice;
daemon off;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
init_by_lua_block {
require "lpeg"
}
server {
listen ${{port}};
lua_code_cache ${{code_cache}};
location / {
default_type text/html;
content_by_lua_block {
require("lapis").serve("app")
-- require("path_fix")
}
}
location /static/ {
alias static/;
}
location /favicon.ico {
alias static/favicon.ico;
}
}
}