Skip to main content

ngxcfm

简介

ngxcfm 是一个用于处理 *ix 系统中 Nginx 配置文件的跨平台软件。它提供了一系列命令行工具,用于从服务器下载 Nginx 配置文件、上传本地配置文件到服务器、格式化配置文件、修复符号链接以及启用或禁用特定的 Nginx 配置文件。

功能

  • pull: 从服务器下载 Nginx 配置文件到本地目录。
  • push: 将本地目录中的 Nginx 配置文件上传到服务器。
  • format: 格式化本地目录中的 Nginx 配置文件。
  • relink: 修复本地目录中的符号链接。
  • enable: 启用指定的 Nginx 配置文件。
  • disable: 禁用指定的 Nginx 配置文件。
  • list: 列出配置文件目录中的 Nginx 配置文件。

用法

ngxcfm [动作] [选项] [源] [目标]

示例

  • 从服务器下载配置文件到本地目录:

    ngxcfm pull Server1 Server1NginxConfs
    
  • 将本地目录中的配置文件上传到服务器:

    ngxcfm push Server1NginxConfs Server1
    
  • 格式化本地目录中的配置文件:

    ngxcfm format Server1NginxConfs
    
  • 修复本地目录中的符号链接:

    ngxcfm relink Server1NginxConfs
    
  • 启用指定的配置文件:

    ngxcfm enable Server1NginxConfs/sites-available/xxx.conf
    
  • 禁用指定的配置文件:

    ngxcfm disable Server1NginxConfs/sites-available/xxx.conf
    

安装

  1. 克隆项目到本地:

    git clone https://github.com/yourusername/ngxcfm.git
    
  2. 使用pip进行本地安装:

    pip install .
    
  3. 执行 ngxcfm 命令:

    ngxcfm
    

许可证

本项目采用 MIT 许可证。详情请参阅 LICENSE 文件。

Metadata

Release files for ngxcfm 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngxcfm 0.3.0
File Size Uploaded
ngxcfm-0.3.0.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ngxcfm 0.3.0
File Interpreter ABI Platform
ngxcfm-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / ngxcfm-0.3.0.tar.gz

Download URL ngxcfm-0.3.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c1042843ddb93879b82e33dc690662404ab836d3ccb53a7cfed6450cd66b4da0
BLAKE2b-256 checksum
How to use checksums
53a3eabcf27b0b964383b80f75b549b7e0e17cace0dd52ac03c4d4194646cb3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / ngxcfm-0.3.0-py3-none-any.whl

Download URL ngxcfm-0.3.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51bbd5173cc11f50d43f222f2ba6ef0269b3a332631ae2a824b6e054799748b5
BLAKE2b-256 checksum
How to use checksums
e4d894036f54395a674b8dfaf17a754cf71e471ff6dde8ba79c6cf418d850994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page