-
Notifications
You must be signed in to change notification settings - Fork 2
/
nginx.conf
59 lines (46 loc) · 1.51 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
52
53
54
55
56
57
58
59
# Mostly copied from:
# https://github.com/openresty/docker-openresty/blob/master/nginx.conf
# https://github.com/openresty/docker-openresty/blob/master/nginx.vh.default.conf
user www-data;
error_log stderr warn;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
client_body_temp_path /var/run/openresty/nginx-client-body;
proxy_temp_path /var/run/openresty/nginx-proxy;
fastcgi_temp_path /var/run/openresty/nginx-fastcgi;
uwsgi_temp_path /var/run/openresty/nginx-uwsgi;
scgi_temp_path /var/run/openresty/nginx-scgi;
sendfile on;
keepalive_timeout 65;
lua_need_request_body on;
# Turn lua_code_cache off if you want hot reloads
# (i.e. you're mounting the volume). A bit trickier at the moment
# because we generate the available_faces.lua file at build, so if
# you naively mount you'll miss that.
# lua_code_cache off;
lua_shared_dict build_locks 20k;
lua_package_path '/code/?.lua;;';
server {
listen 8080 default_server;
location / {
ssi on;
root /static;
index index.html;
}
location /builds {
root /;
}
location /build {
default_type text/html;
content_by_lua_file /code/build.lua;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/openresty/nginx/html;
}
}
}