Stop loading `/etc/nginx/sites-enabled/*`

未关闭 适合新手
#112 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
docker, nginx, python

调研方向

编辑src/templates/nginx/nginx.conf以移除对/etc/nginx/sites-enabled/*的包含,然后检查Dockerfile。从mkdir中移除该目录,并从rm中移除其default文件。检查生成的配置和Dockerfile,确认只加载Ceryx自己的nginx服务器,并且不会创建或删除这两个已移除的路径。

由索引模型根据 Issue 内容生成。

描述

Ceryx's proxy and API are the only nginx servers, and we don't support adding others. Even so, src/templates/nginx/nginx.conf still loads /etc/nginx/sites-enabled/*, and the Dockerfile creates that folder.

Remove

  • include /etc/nginx/sites-enabled/*; from nginx.conf
  • /etc/nginx/sites-enabled from the mkdir in the Dockerfile
  • /etc/nginx/sites-enabled/default from the rm in the Dockerfile, since nothing loads it anymore

This makes the nginx config contain only Ceryx's own servers.

主要语言
Python
星标
814
派生
145
平均合并
3 小时 42 分钟
30 天内合并 PR
6

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

withlogicco/ceryx 的其他 Issue

查看 withlogicco/ceryx 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。