Restoring Original Visitor IPs to Nginx Behind Cloudflare
1 minThis feature requires the Nginx module ngx_http_realip_module Following the official Cloudflare documentation, add the following to the http block in your configuration file: set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/2...
Setting Up IPv6 on Arch Linux on Vultr
2 minAs a firm believer in the motto "Life lies in tinkering,"I swapped the OS on my VPS to Arch Linux shortly after getting it. For convenience during setup, I just used dhcpcd to configure the IP address automatically. The automatic configurat...
Securing Web Server with an IP Allow List
3 minI recently learned about a clever trick: using "internet-wide scanning"to discover the real IP address of a website hidden behind a CDN. So, in an effort to enhance my site's security (and for the fun of it), I started tinkering with an all...
Configuring Permalinks for WordPress on Nginx
1 minAccording to the official Nginx documentation and the official WordPress documentation, add the following line inside your location block: try_files $uri $uri/ /index.php?$args;
Re-flashing the Gloway VAL500GS3 Firmware
1 minThe Gloway VAL500GS3 is a solid-state drive that uses the M.2 interface and features the SM2246EN controller. Here is the process to get the drive into a state where it can be detected by the MP Tool: Short the JP1-1 pins → Power on the dri...
Late-Night 4G Speed Test: China Telecom vs. China Unicom
1 minSince my school's Wi-Fi is often unreliable, I recently signed up for a China Unicom "Mi Fan Card"SIM. I've heard that China Unicom offers fast speeds for connecting to overseas servers. So, while I still had the 40GB of high-speed data, I...