panel/nginx.conf

38 lines
570 B
Nginx Configuration File

worker_processes ${{NUM_WORKERS}};
error_log stderr notice;
daemon off;
env POSTGRESQL_PORT_5432_TCP_PORT;
env POSTGRESQL_PORT_5432_TCP_ADDR;
env DB_USER;
env DB_PASS;
env DB_NAME;
events {
worker_connections 1024;
}
http {
include mime.types;
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;
}
}
}