panel/nginx.conf

33 lines
490 B
Nginx Configuration File
Raw Normal View History

2015-01-05 21:41:19 +00:00
worker_processes ${{NUM_WORKERS}};
error_log stderr notice;
daemon off;
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen ${{PORT}};
lua_code_cache ${{CODE_CACHE}};
location / {
default_type text/html;
content_by_lua '
2015-01-09 02:49:41 +00:00
require("moonscript")
2015-01-05 21:41:19 +00:00
require("lapis").serve("app")
';
}
location /static/ {
alias static/;
}
location /favicon.ico {
alias static/favicon.ico;
}
}
}