-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnginx.prod.conf
31 lines (23 loc) · 998 Bytes
/
nginx.prod.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
# nginx server for static assets. For directive documentation, see
# http://nginx.org/en/docs/dirindex.html
# Note: this nginx configuration is a default template, to deploy Job Manager on various types of servers,
# such as Google App Engine, Google Kubernetes Engine, etc. please override this file
# For compatibility with Nginx "unprivileged" blessed base image [0], put the PID somewhere not-privileged [1]
# [0] https://github.com/broadinstitute/dsp-appsec-blessed-images/blob/main/nginx/Dockerfile.stable-alpine#L1
# [1] https://broadinstitute.slack.com/archives/CADU7L0SZ/p1627588528360200?thread_ts=1627578911.354100&cid=CADU7L0SZ
pid /tmp/nginx.pid;
# Required - just leave the defaults for now.
events {}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
gzip on;
gzip_disable "msie6";
server {
listen 80;
root /ui/dist;
location / {
try_files $uri$args $uri$args/ /index.html;
}
}
}