update document.

This commit is contained in:
lzx 2025-04-10 19:19:41 +08:00
parent b4acd2aee6
commit b9081848da
3 changed files with 19 additions and 47 deletions

27
README
View File

@ -1,12 +1,23 @@
app module
hashrate
distribution
report_block
confirm_block
clear
balance
m2pool app module code
############# start common #############
environment:
nodejs v16.10.0 +
express
axios
mysql2
ioredis
if you want to support enx, kas...
add environment:
kaspa-rpc-client
### start common example ###
node app.js <method> <coin>
# if you used pm2, you can use this command
pm2 start app.js --name <pm2 process name> -- <method> <coin>
############# pm2 start common #############
pm2 start app.js --name nexa-hashratev2 -- hashrate nexa
pm2 start app.js --name nexa-reportv2 -- report nexa
pm2 start app.js --name nexa-confirm -- confirm nexa

View File

@ -1 +0,0 @@
app code

View File

@ -1,38 +0,0 @@
server {
listen 23116; # 监听的端口号
server_name localhost; # 您的域名
root /var/www/html/verify; # 设置根路径为 /var/www/html/web
index index.html; # 设置默认索引文件
location / {
root /var/www/html/verify;
index index.html index.htm;
# try_files $uri $uri/ @router; # 处理请求的方式
}
#location @router{
# rewrite ^.*$ /index.html last;
#}
# 静态资源配置
location ~ ^/(images|javascript|js|css|flash|media|static|eot|otf|ttf|woff|svg|woof2|fonts)/{
root /var/www/html/verify;
add_header Access-Control-Allow-Origin *;
#过期30天静态文件不怎么更新过期可以设大一点如果频繁更新则可以设置得小一点。
expires 30d;
}
location ~ ^/favicon\.ico$ {
root /var/www/html/verify;
}
if ($args ~* "select|insert|update|delete|drop|exec|script"){
return 403;
}
}