This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nginx/sites-available/example.com | |
server { | |
listen 80; | |
listen [::]:80; | |
# path to out folder | |
root /var/www/out; | |
index index.html index.htm index.nginx-debian.html; | |
# server_name www.example.com example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mobile Legend (ML) | |
tcp: 5000-5221,5224-5227,5229-5241,5243-5508,5551-5559,5601-5700,9001,9443 | |
tcp: 10003,30000-30300 | |
udp: 4001-4009,5000-5221,5224-5241,5243-5508,5551-5559,5601-5700 | |
udp: 2702,3702,8001,9000-9010,9992,10003,30190,30000-30300 | |
Free Fire (FF) | |
tcp: 6006,6674,7006,7889,8001-8012,9006,10000-10012,11000-11019,120006,12008,13006 | |
tcp: 39003,39006,39698,39779,39800 | |
udp: 6006,6008,7008,8008,9008,10000-10013,10100,11000-11019,12008,13008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @link https://stackoverflow.com/a/1349426/11340631 | |
*/ | |
const makeRandomString = (length = 5, typeCharacter = "lowerUpperNumber") => { | |
if (length < 5) return "Length must be more than 5."; | |
if ( | |
typeCharacter !== "lower" && | |
typeCharacter !== "upper" && | |
typeCharacter !== "number" && |