-
Notifications
You must be signed in to change notification settings - Fork 76
/
nginx.conf
34 lines (31 loc) · 971 Bytes
/
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
# on alpine, copy to /etc/nginx/nginx.conf
user root;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile off;
access_log off;
keepalive_timeout 3000;
server {
listen 9081;
index index.html;
server_name cmapPy;
client_max_body_size 16m;
port_in_redirect off;
location ~ ^/cmapPy$ {
try_files $uri @rewrite;
}
location @rewrite {
return 302 $scheme://$http_host$uri/;
}
location ~ ^/cmapPy(?:/(.*))?$ {
root /usr/share/nginx/html;
access_log off;
}
}
}