-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JOE_CONFIG.conf
82 lines (70 loc) · 2.72 KB
/
JOE_CONFIG.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
events {
worker_connections 1024;
}
# docker run -p 80:80 -v /root/website/THISCONF.conf:/etc/nginx/nginx.conf:ro -d nginx
# cd /root/explorer
# yarn --ignore-engines && yarn serve --disable-host-check
http {
# https://github.com/joe-chain/joe-app
server {
listen 80;
server_name justjoe.app www.justjoe.app;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://95.217.113.126:81/;
}
}
# https://github.com/joe-chain/joe-ping
# TODO: make sure to change your config.toml 8080 for rossetta -> another port (8089 for example) so ping can run here
server {
listen 80; # or 80?
listen [::]:80;
server_name explorer.* ping.*;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Max-Age 3600;
add_header Access-Control-Expose-Headers Content-Length;
proxy_pass http://95.217.113.126:8080;
}
gzip on;
gzip_proxied any;
gzip_static on;
gzip_min_length 1024;
gzip_buffers 4 16k;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/vnd.ms-fontobject font/ttf font/opentype font/x-woff image/svg+xml;
gzip_vary off;
gzip_disable "MSIE [1-6]\.";
}
server {
listen 80;
server_name rpc.*;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Access-Control-Allow-Origin *;
# add_header Access-Control-Max-Age 3600;
# add_header Access-Control-Expose-Headers Content-Length;
proxy_pass http://95.217.113.126:26657/;
}
}
server {
listen 80;
server_name rest.* api.*;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Access-Control-Allow-Origin *;
# add_header Access-Control-Max-Age 3600;
# add_header Access-Control-Expose-Headers Content-Length;
proxy_pass http://95.217.113.126:1317/;
}
}
}