PreviouslyOnIFM/code/nginx.conf

44 lines
667 B
Nginx Configuration File

worker_processes ${{NUM_WORKERS}};
error_log stderr notice;
daemon off;
pid logs/nginx.pid;
env POSTGRES_PASSWORD;
env STATION_SECRET_1;
env STATION_SECRET_2;
env STATION_SECRET_3;
events {
worker_connections 1024;
}
http {
include mime.types;
resolver 127.0.0.11;
init_by_lua_block {
require("socket")
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;
}
}
}