/
nginx.conf
51 lines (41 loc) · 1.06 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
worker_processes ${{NUM_WORKERS}};
error_log stderr notice;
daemon off;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
server {
listen ${{PORT}};
# listen ${{SSL_PORT}} ssl;
# ssl_certificate www.example.com.crt;
# ssl_certificate_key www.example.com.key;
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# ssl_ciphers HIGH:!aNULL:!MD5;
lua_code_cache ${{CODE_CACHE}};
client_body_buffer_size 10M;
client_max_body_size 10M;
location / {
default_type text/html;
content_by_lua '
require("lapis").serve("app")
';
}
location /run {
alias static/run;
}
location /alpha {
alias static/alpha;
}
location /static/ {
alias static/;
}
location /favicon.ico {
alias static/favicon.ico;
}
}
}