docs(www): 添加 Nginx 配置文件和使用说明

- 新增 nginx.conf 和 default/nginx.conf 文件,提供基本的 Nginx 配置
- 添加 README.md 文件,说明如何下载、启用和测试 Nginx 配置
- 创建 default 目录,用于存放默认配置文件
This commit is contained in:
2025-03-13 22:51:26 +08:00
parent 0ad2a459b4
commit f7fcf4d7af
4 changed files with 230 additions and 0 deletions

27
www/default/README.md Normal file
View File

@@ -0,0 +1,27 @@
# Git 仓库
## Nginx 配置
下载配置
```bash
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/www/default/nginx.conf > /etc/nginx/sites-available/default
```
启用配置
```bash
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
```
测试配置
```bash
nginx -t
```
重启 nginx
```bash
systemctl restart nginx
```