
test environment configuration
This test environment is based on CentOS version 7.6 of the Linux system and uses Pagoda Panel for server management. We chose PHP 7.3 and MySQL 5.6 as the development environment for the backend. The root directory of the project is public. In order to improve the security of the website, we have enabled SSL Certificates.
language support
This project only supports Portugal, and the front-end part adopts the compiled vue framework, which is mainly used for research and learning, and is not recommended for direct commercial operations.
Functional exploration
Since I haven't fully understood the specific functions of this project, I have only conducted a simple function browsing and have not had an actual game experience.
Database and backend domain name modification
If you need to modify the database configuration, edit the.env file under the root directory, focusing on lines 23, 24, and 25. To modify the backend domain name, please also find line 5 in the.env file to modify it.
Front-end configuration adjustment
In terms of front-end access, you can set the default index.html file to the document with the highest access priority, and adjust index.php to the second choice. Alternatively, you can also directly access the front-end page by adding/index.html.
pseudo-static settings
For setting pseudo-static, please follow the following configuration:
location / {
try_files $uri $uri/ /index.php?$ query_string;
}
location ~* ^/ws {
access_log off;
proxy_pass http://localhost:2350;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}
scheduled task
For scheduled tasks, you can follow the following commands:
Start the game: php artisan game:start
Automatic rejection of unprocessed orders: php artisan withdrawBack
Start Workman: php artisan workman start-d
Comments0