-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
83 lines (70 loc) · 1.88 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
user nginx;
pid /var/run/nginx.pid;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
proxy_read_timeout 86400;
#add_header Content-Security-Policy "frame-ancestors 'self' localhost;";
# Logging
access_log /var/log/nginx/access.log;
server {
listen 80;
server_name localhost;
try_files $uri $uri/ /index.html;
location / {
root /usr/share/nginx/html;
index index.html;
}
location /metabase/ {
proxy_pass http://metabase:3000/;
}
}
server {
listen *:80;
server_name dagit.localhost;
location / {
proxy_headers_hash_max_size 1024;
proxy_headers_hash_bucket_size 128;
proxy_pass http://dagster_dagit:3000/;
}
}
server {
listen *:80;
server_name rubrix.localhost;
location / {
proxy_pass http://rubrix:80/;
}
}
server {
listen *:80;
server_name apps.localhost;
location / {
proxy_pass http://streamlit_all:8501/;
}
}
server {
listen *:80;
server_name spacy_app.localhost;
location / {
proxy_pass http://streamlit_spacy:8501/;
}
}
}