--jsonrpc-hosts all # 否则报错Provided Host header is not whitelisted
--force-ui # 否则报错 Your homepage is not available when Trusted Signer is disabled
UI WALLET address 0.0.0.0:8180 is already in use, make sure that another instance of an Ethereum client is not running or change the address using the --ui-port and --ui-interface options.
nginx配置
server {
listen 80;
server_name berpc.domain.com;
location / {
proxy_pass http://localhost:8545;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log /var/log/gitlab/nginx/parity_access.log;
error_log /var/log/gitlab/nginx/parity_error.log;
}
server {
listen 172.19.230.216:8180;
server_name berpcweb.domain.com;
location / {
proxy_pass http://127.0.0.1:8180;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log /var/log/gitlab/nginx/parity_access2.log;
error_log /var/log/gitlab/nginx/parity_error2.log;
}
./parity --ui-hosts berpcweb.domain.com --jsonrpc-hosts=all --ws-hosts berpc.domain.com --ws-origins 127.0.0.1:8180 --force-ui