Recently, when troubleshooting an online problem, I found that the nginx log $upstream_addr field actually returned 2 values, in the form of '192.168.1.1:80, api-servers', where api-servers refers to you The upstream is followed by the group name, and the part has only one value 'api-servers'. Under normal circumstances, this place should be like "192.168.1.1:80", that is, one request falls to one backend service.
Common Readline shortcuts, everyone knows them
In the process of daily computer use, some scenarios require copying and pasting content between multiple business systems. For operations such as copying or cutting, the content is stored in the clipboard (English: clipboard), which can only store one content at a time, and the new content will overwrite the old content. This default behavior of the operating system is sometimes not convenient enough to use, so people have written various clipboard managers. This article introduces the simple use of CopyQ, a cross-platform software, under the Ubuntu system.
I recently bought a new domain name on namesilo and needed a CNAME to the current site. I found that the resolution was extremely slow to take effect. After searching the Internet, I decided to migrate the resolution to cloudflare. There are two advantages: 1. Faster resolution; 2. . Use CDN for free; website access becomes faster
When testing this site with Google PageSpeed Insights, the diagnostic results indicate that static files are not cached. In particular, downloading woff2 fonts takes a long time, impacting loading speed. Since this site uses the Caddy2 server, static file caching needs to be added. The configuration file syntax differs slightly from Nginx.