-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.conf
123 lines (100 loc) · 3.16 KB
/
default.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
server {
listen 80;
listen [::]:80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /dobie/ {
proxy_ssl_server_name on;
proxy_pass https://demo.iais.fraunhofer.de;
auth_request_set $http_authorization $upstream_http_authorization;
}
location /degree-comparison {
proxy_ssl_server_name on;
proxy_pass https://blockchain21.kmi.open.ac.uk;
}
location /ntuaViz/ {
proxy_pass http://qualichain.epu.ntua.gr:8000/visualiser/;
proxy_redirect default;
}
location /static {
proxy_pass http://qualichain.epu.ntua.gr:8000;
proxy_redirect default;
}
#location /proxyKBZ_old/ {
# proxy_pass http://vpnknowledgebiz.ddns.net:8000/;
# proxy_redirect default;
#}
#set $kbz_endpoint http://vpnknowledgebiz.ddns.net:8000;
#location /proxyKBZ/ {
# resolver 8.8.8.8 valid=1s;
# rewrite ^/proxyKBZ/(.*) /$1 break;
# proxy_pass $kbz_endpoint$uri$is_args$args;
#}
location /ntuaAPI5004/ {
proxy_pass http://qualichain.epu.ntua.gr:5004/;
proxy_redirect default;
}
location /ntuaAPI7000/ {
proxy_pass http://qualichain.epu.ntua.gr:7000/;
proxy_redirect default;
}
location /ntuaAPI7070/ {
proxy_pass http://qualichain.epu.ntua.gr:7070/;
#proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /ntuaAPI8080/ {
proxy_pass http://qualichain.epu.ntua.gr:8080/;
proxy_redirect default;
}
location /recruitmentComponent/ {
rewrite /recruitmentCompoent /qualichain break;
proxy_pass https://qualichain.herokuapp.com;
proxy_redirect default;
}
location /badging/ {
proxy_ssl_server_name on;
proxy_pass https://blockchain21.kmi.open.ac.uk;
#proxy_redirect default;
}
location /qualichain/ {
proxy_ssl_server_name on;
proxy_pass https://blockchain21.kmi.open.ac.uk;
#proxy_redirect default;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}