This repository has been archived on 2024-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
musicapp/nginx.conf

39 lines
577 B
Nginx Configuration File
Raw Normal View History

2019-04-18 04:05:33 +00:00
worker_processes ${{NUM_WORKERS}};
error_log stderr notice;
daemon off;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
charset UTF-8;
include mime.types;
2019-06-29 02:38:37 +00:00
lua_shared_dict worker 1m;
2019-06-29 02:37:35 +00:00
init_worker_by_lua '
require("worker")
';
2019-04-18 04:05:33 +00:00
server {
listen ${{PORT}};
lua_code_cache ${{CODE_CACHE}};
location / {
default_type text/html;
content_by_lua '
require("lapis").serve("app")
';
}
location /static/ {
alias static/;
}
location /favicon.ico {
alias static/favicon.ico;
}
}
}