Peradventure/nginx.conf.compiled

40 lines
585 B
Plaintext
Raw Permalink Normal View History

2024-03-16 18:29:52 -05:00
env LAPIS_ENVIRONMENT=development;
worker_processes 1;
error_log stderr notice;
daemon off;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
init_by_lua_block {
require "lpeg"
2024-03-18 15:31:53 -05:00
require "lsqlite3"
lapis = require "lapis"
2024-03-16 18:29:52 -05:00
}
server {
listen 8080;
lua_code_cache off;
location / {
default_type text/html;
content_by_lua_block {
require("lapis").serve("app")
}
}
location /static/ {
alias static/;
}
location /favicon.ico {
alias static/favicon.ico;
}
}
}