From b9081848da0727b8ad79d3a1001888a0bba58082 Mon Sep 17 00:00:00 2001 From: lzx <393768033@qq.com> Date: Thu, 10 Apr 2025 19:19:41 +0800 Subject: [PATCH] update document. --- README | 27 +++++++++++++++++++-------- README.md | 1 - src/web/verify.conf | 38 -------------------------------------- 3 files changed, 19 insertions(+), 47 deletions(-) delete mode 100644 README.md delete mode 100644 src/web/verify.conf diff --git a/README b/README index 7da271d..9ca589d 100644 --- a/README +++ b/README @@ -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 + +# if you used pm2, you can use this command +pm2 start app.js --name -- + +############# 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 diff --git a/README.md b/README.md deleted file mode 100644 index 2892709..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -app code diff --git a/src/web/verify.conf b/src/web/verify.conf deleted file mode 100644 index 9d32bd9..0000000 --- a/src/web/verify.conf +++ /dev/null @@ -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; - } - -}