initial commit

This commit is contained in:
2025-05-07 20:01:04 +03:00
commit 497ec62990
6 changed files with 136 additions and 0 deletions

36
nginx.conf Normal file
View File

@ -0,0 +1,36 @@
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")
}
}
location /static/ {
alias static/;
}
location /favicon.ico {
alias static/favicon.ico;
}
}
}