ChatGPT detailed guide to building a magical artifact for sale in an account
have been researching recently chatGPT, i found that many people who sell accounts use open source unicorn digital card system to build it. i also built it and experienced it. i have to say that the author is great. i have an open source system that is available for unboxing, and it is very good-looking.
let’s record the process of my construction below.
it has two sets of templates, both of which are very good-looking, and you can choose one of them according to your needs.
【system construction] ChatGPT detailed guide for building unique card numbers for account sales [system construction] ChatGPT detailed guide for building unique card for account sales artifacts 1
construction preparation
1、a cloud server, that is vps, it is recommended to purchase alibaba cloud or tencent cloud server.
2、buy a domain name
environmental requirements
## basic environmental requirements
- (PHP + PHPCLI) version >= 7.2
- Nginx version >= 1.16
- MYSQL version >= 5.6
- Redis (high-performance caching service )
- Supervisor (one python process management services written )
- Composer (PHP package manager )
- Linux/Win (Win no tests below, it is recommended to directly Linux)
PHPenvironmental requirements
1. must be installed fileinfo expand, redis extended
2. terminal needs support php-cli, test php -v(versions must be consistent )
3. functions that need to be enabled: putenv,proc_open,pcntl_signal,pcntl_alarm
4. recommended installation opcache extension (non-required)
unicorn data is a framework laravel, we use it directly lnmp the one-click installation package is convenient and fast. as for how to use this, i won’t talk about it here, it’s not the focus of this article.
deploy and install
download the unicorn number card installation pack (see the end), upload it to the server, and unzip it.
#switch to website directory
cd /home/wwwroot/dujiaoka
#rename
mv .env.example .env
#open. env document
vim .env
#edit the database in the file, redis, and mail configuration.
# website url
APP_URL=https://www.example.com
# database configuration
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database name
DB_USERNAME=database user
DB_PASSWORD=database password
# redis cache configuration
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=fill in without password null
REDIS_PORT=6379
# mail service configuration
MAIL_DRIVER=smtp
MAIL_HOST=smtp server
MAIL_PORT=587
MAIL_USERNAME=email account
MAIL_PASSWORD=email password
MAIL_FROM_ADDRESS=sender email address
MAIL_FROM_NAME=sender name
MAIL_ENCRYPTION=ssl
must be sure MySQL database configuration, Redis the configuration, sender email service configuration, etc. are correct (must include it after it is officially launched. env the configuration inside APP_DEBUG set as false)
nginx configuration
server
{
listen 443 ssl http2;
#listen [::]:443 ssl http2;
server_name shop.xx.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/dujiaoka/public;
#ssl on;
ssl_certificate cert/full_chain.pem;
ssl_certificate_key cert/private.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
ssl_session_cache builtin:1000 shared:SSL:10m;
# openssl dhparam -out ssl/dhparam.pem 2048
#ssl_dhparam ssl/dhparam.pem;
include rewrite/laravel.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/shop.xx.com.log xxzt;
}
after the configuration is complete, restart nginx 。
use Supervisor daemon
the author said that the daemon process must be installed and installed without hesitation.
install Supervisor:
# CentOS system
yum install supervisor -y
# Debian/Ubuntu system
apt-get install supervisor -y
vim editing tools to modify configuration files supervisord.conf, the path defaults to /etc/supervisord.conf
vim /etc/supervisord.conf
at the end of the configuration file, add the following content
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/wwwroot/dujiaoka/artisan queue:work --sleep=3 --tries=3
autostart=true
autorestart=true
user=www
numprocs=4
redirect_stderr=true
stdout_logfile=/home/wwwlogs/worker.log
note: user need to nginx.conf in the file user stay consistent; pay attention to command use your own website root directory (absolute path) if php there are versions available whereis commands find and use the full path of the corresponding version; numprocs instructions Supervisor run 4 queue:work processes and monitor them. if they fail, they will automatically restart. please refer to the number of processes. CPU load condition setting.
after the configuration file is created, you can use the following command to update it Supervisor configure and start the process:
supervisorctl reread
supervisorctl update
supervisorctl start laravel-worker:*
payment gateway settings
payment options merchant id merchant key merchant key
alipay official (pay in person PC、wap) alipay open platform application appid alipay public key merchant private key
payjs payjs merchant number (mchid) "null" payjs key
code payment platform merchant number code payment request website key
wechat official official account or mini program appid merchant number merchant api key
muggle merchant key empty any string
paysapi merchant number empty key
easy payment easy payment easy payment request website key
V visa-free V sign-free communication key empty V visa-free address
【source:https://www.facekun.com/arts/907.html, please indicate if you reprint]

the above is shared by suyou.com with everyone." ChatGPT detailed guide to building unicorn number cards for account sales" thank you very much for your patience to read this article. we will provide you with more information on reference, use or learning and communication. we can also provide you with:enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionfor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation". if you need cooperation, please scan the code to consult, and we will serve you sincerely.
TAG label: