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 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
| upstream newservice { server 127.0.0.1:8988 weight=1; }
upstream ontioglobal { server 127.0.0.1:3001 weight=1; }
upstream ontiochinese { server 127.0.0.1:3003 weight=1; }
server { listen 443 ssl; server_name ont.io; client_max_body_size 80M; access_log /data/install/nginx/logs/ont.io/access.log main;
location /wp { root /data/install/wp; index index.html index.htm; } location /googlea11162a0e175a9a9.html { alias /data/install/googleprove/googlea11162a0e175a9a9.html; }
location /api/v1/newsservice { proxy_pass http://newservice/api/v1/newsservice; }
location /api/v1/candidate { proxy_pass http://newservice/api/v1/candidate; }
location /api/v1/asset { proxy_pass http://newservice/api/v1/asset; }
location /sharding { return https://github.com/ontio/documentation/blob/master/sharding/ontology-sharding.pdf; } location /certification/ { proxy_pass http://127.0.0.1:9001/; }
location /pdf{ root /data/install/ontology-website-pdf; } location /Cyberspace4Philosophers {
add_header X-Frame-Options DENY;
add_header 'Access-Control-Allow-Origin' *; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,web-token,app-token,Authorization,Accept,Origin,Keep-Alive,User-Agent,X-Mx-ReqToken,X-Data-Type,X-Auth-Token,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; try_files $uri $uri/ /Cyberspace4Philosophers/index.html; alias /data/install/ontology-4th-anniversary; index index.html index.htm; if ($geoip2_data_country_code = CN) { return 403; } }
ssl_certificate /data/lego/_.ont.io.pem; ssl_certificate_key /data/lego/_.ont.io.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssi on; ssi_silent_errors on; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers EECDH+AESGCM:EDH+AESGCM;
ssl_prefer_server_ciphers on;
location / { add_header X-Frame-Options DENY; add_header 'Access-Control-Allow-Origin' *; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,web-token,app-token,Authorization,Accept,Origin,Keep-Alive,User-Agent,X-Mx-ReqToken,X-Data-Type,X-Auth-Token,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; proxy_pass http://ontioglobal; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; add_header X-Frame-Options "SAMEORIGIN"; add_header Referrer-Policy "no-referrer"; add_header X-Content-Type-Options "nosniff"; add_header Permissions-Policy "geolocation=(), microphone=(), camera=()";
index index.php index.htm index.html; if ($geoip2_data_country_code = CN) { return 403; }
} error_page 403 /403.html; location = /403.html { root /data/install/ontology-new/dist/server; allow all; }
}
server { listen 443 ssl; server_name www.ont.io; client_max_body_size 80M; access_log /data/install/nginx/logs/ont.io/access.log main;
location /wp { root /data/install/wp; index index.html index.htm; }
location /api/v1/newsservice { proxy_pass http://newservice/api/v1/newsservice; }
location /api/v1/candidate { proxy_pass http://newservice/api/v1/candidate; }
location /api/v1/asset { proxy_pass http://newservice/api/v1/asset; }
location /sharding { return https://github.com/ontio/documentation/blob/master/sharding/ontology-sharding.pdf; } location /certification/ { proxy_pass http://127.0.0.1:9001/; }
location /pdf{ root /data/install/ontology-website-pdf; } location /Cyberspace4Philosophers {
add_header X-Frame-Options DENY;
add_header 'Access-Control-Allow-Origin' *; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,web-token,app-token,Authorization,Accept,Origin,Keep-Alive,User-Agent,X-Mx-ReqToken,X-Data-Type,X-Auth-Token,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header Referrer-Policy "no-referrer"; add_header X-Content-Type-Options "nosniff"; add_header Permissions-Policy "geolocation=(), microphone=(), camera=()";
try_files $uri $uri/ /Cyberspace4Philosophers/index.html; alias /data/install/ontology-4th-anniversary; index index.html index.htm; if ($geoip2_data_country_code = CN) { return 403; } }
ssl_certificate /data/lego/_.ont.io.pem; ssl_certificate_key /data/lego/_.ont.io.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssi on; ssi_silent_errors on; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers EECDH+AESGCM:EDH+AESGCM;
ssl_prefer_server_ciphers on; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
location / { add_header X-Frame-Options DENY; add_header 'Access-Control-Allow-Origin' *; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,web-token,app-token,Authorization,Accept,Origin,Keep-Alive,User-Agent,X-Mx-ReqToken,X-Data-Type,X-Auth-Token,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; proxy_pass http://ontioglobal; index index.php index.htm index.html; if ($geoip2_data_country_code = CN) {
return 403; }
}
error_page 403 /403.html; location = /403.html { root /data/install/ontology-new/dist/server; allow all; }
}
server { listen 80; server_name ont.io www.ont.io; client_max_body_size 50m; return 301 https://ont.io; }
|