-
Notifications
You must be signed in to change notification settings - Fork 3
/
nginx.conf
45 lines (37 loc) · 1.11 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
events {}
http {
server {
listen 8080;
access_log /dev/stdout;
error_log /dev/stdout;
auth_basic "";
auth_basic_user_file /etc/nginx/.htpasswd;
root /src/frontend/build;
index index.html;
location / {
include /etc/nginx/mime.types;
try_files $uri $uri/ =404;
}
location /process/ {
include /etc/nginx/mime.types;
proxy_pass http://localhost:6060/;
}
location /jupyter {
include /etc/nginx/mime.types;
proxy_pass http://localhost:7070;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
location /invoke/ {
include /etc/nginx/mime.types;
proxy_pass http://localhost:9090/;
}
}
}
daemon off;
pid /run/nginx.pid;