Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: nginx

RSS

nginx Cipher Suite Security Audit

This article documents the company's entire process of identifying and resolving HTTPS cipher suite security vulnerabilities during the Level 3 Classified Protection (MLPS Level 3) assessment. Initially, scanning with the `nmap` tool revealed the presence of insecure cipher suites. Although the Nginx configuration was optimized to disable TLS 1.2 and retain only secure suites, external access tests still indicated issues. By comparing the results of local self-testing, which showed normal behavior, with the anomalies observed from external networks, it was determined that traffic passed through other middleware before reaching Nginx. After consulting with the operations team and reviewing historical purchase records, the root cause was finally identified as an incorrectly configured TLS restriction in the Alibaba Cloud WAF. Disabling the WAF caused the issue to disappear, and the problem was subsequently resolved completely through product upgrades and proper configuration. This experience not only highlighted the importance of configuring front-end middleware in security architectures but also prompted a deep reflection on troubleshooting methodologies: one should follow a logic of narrowing down from a broad scope to a specific one, using the discrepancies between internal and external network tests to quickly locate bottlenecks, thereby avoiding blind trial-and-error. Although inefficient communication with the operations team reduced efficiency during the process, the core lesson lies in establishing clear, progressive troubleshooting thinking, transforming theoretical insights into precise technical localization, and thus efficiently resolving security risks in complex network environments.

Views 200
2023 centos cloud docker nginx security work

AutoQuery Usage and Deployment (GitHub Actions)

This article introduces the rapid development workflow based on the AutoQuery framework, covering key steps from environment initialization to production deployment. First, the `x` command-line tool is installed via `dotnet tool`, and the `x new` command is used to create a Web project. `autocrudgen` is then leveraged to automatically generate SQLite database models and basic code, simplifying backend development tasks. The deployment section details how to configure Docker and Docker Compose on an Ubuntu 22.04 server, including specific commands for updating system sources, adding the official Docker GPG key, and installing the latest CE version. The article also demonstrates how to use `x mix build` to generate an Nginx proxy configuration script, upload it to the server via `scp`, and start services using `docker compose` commands, thereby implementing an automated deployment solution based on GitHub Actions. Additionally, the text provides practical details such as Let's Encrypt email configuration, SSH connection parameters, and user permission settings, aiming to help developers efficiently build and deploy AutoQuery-based applications. A link to a related video tutorial is provided at the end for further learning.

Views 79
.Net ci-cd devops docker github nginx