forked from britkat1980/giv_tcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress.conf
62 lines (58 loc) · 1.87 KB
/
ingress.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
#upstream settings {
# server http://127.0.0.1:6345/settings;
# server http://127.0.0.1:6346/settings backup;
# server http://127.0.0.1:6347/settings backup;
# server http://127.0.0.1:6348/settings backup;
# server http://127.0.0.1:6349/settings backup;
#}
server {
listen 8099;
listen 8098 ssl;
# allow 172.30.32.2;
# deny all;
ssl_certificate /ssl/fullchain.pem;
ssl_certificate_key /ssl/privkey.pem;
access_log /dev/null;
error_log /dev/null;
root /app/ingress;
# Use a backup server for settings, in case
# someone doesn't use slot 1 and config page won't work
# location = /REST1/settings {
# proxy_pass settings;
# }
location /REST1/ {
proxy_pass http://127.0.0.1:6345/;
}
location /REST2/ {
proxy_pass http://127.0.0.1:6346/;
}
location /REST3/ {
proxy_pass http://127.0.0.1:6347/;
}
location /REST4/ {
proxy_pass http://127.0.0.1:6348/;
}
location /REST5/ {
proxy_pass http://127.0.0.1:6349/;
}
location /dashboard/ {
proxy_pass http://127.0.0.1:3000/;
}
location /rq/ {
proxy_pass http://127.0.0.1:9181/;
}
location / {
index index.html;
try_files $uri $uri/ /index.html;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header Origin "";
# #proxy_pass /;
# proxy_redirect '/' '/api/hassio_ingress/Sh0KGb4ov2KVn9o-o9PskOkIO_4HtHc3p63Y1aWJOGg';
# sub_filter 'href="/' 'href="/api/hassio_ingress/Sh0KGb4ov2KVn9o-o9PskOkIO_4HtHc3p63Y1aWJOGg/';
# sub_filter '<script src="/' '<script src="/api/hassio_ingress/Sh0KGb4ov2KVn9o-o9PskOkIO_4HtHc3p63Y1aWJOGg/';
# sub_filter "top.location.href='" "top.location.href='/api/hassio_ingress/Sh0KGb4ov2KVn9o-o9PskOkIO_4HtHc3p63Y1aWJOGg";
#
# sub_filter_once off;
}
}