nickvourd/DropperDragon
GitHub: nickvourd/DropperDragon
DropperDragon 是一个基于 Terraform 和 Ansible 的 Azure 基础设施自动化方案,能从零开始一键部署并配置支持 HTTPS 的生产级 Nginx Web 服务器。
Stars: 1 | Forks: 1
# DropperDragon
自动化 Dropper WebServer 解决方案。
\
-u \
-n \
-s \
-d \
-v
```
**示例:**
```
python3 scripts-pack/setup.py \
-l westus2 \
-u azureuser \
-n myapp \
-s ~/.ssh/id_rsa \
-d myapp-dns \
-v standard_b2s
```
**可用的 Azure 位置:**
```
eastus, eastus2, westus, westus2, westus3, northeurope,
westeurope, southeastasia, eastasia, australiaeast,
australiasoutheast, japaneast, japanwest
```
**可用的 VM 大小:**
```
standard_b1ms, standard_b2s, standard_b2ms
```
#### 3. 使用 Ansible 配置 Azure VM
在 Terraform 完成(2-3 分钟)后,配置 VM:
```
python3 scripts-pack/deploy.py --ssh-key
```
**示例:**
```
python3 scripts-pack/deploy.py --ssh-key ~/.ssh/id_rsa
```
#### 4. 访问您的服务
部署完成后,通过 HTTPS 访问您的服务:
```
https://
```
FQDN 将显示在 `setup.py` 的输出中。
## 目录结构
```
DropperDragon/
├── scripts-pack/
│ ├── setup.py # Azure VM provisioning (Terraform)
│ ├── deploy.py # Ansible orchestration
│ ├── README.md # This file
│ └── __init__.py
│
├── Terraform-Pack/
│ ├── main.tf # Main Terraform configuration
│ ├── outputs.tf # Terraform outputs
│ ├── variables.tf # Terraform variables
│ ├── terraform.tfvars # Generated by setup.py
│ └── terraform.tfstate # State file
│
├── Ansible-Pack/
│ ├── site.yml # Main playbook with all tasks
│ ├── nginx_default.j2 # Nginx config template
│ └── inventory.ini # Generated dynamically by deploy.py
│
└── docs/
└── superpowers/
└── plans/ # Implementation plans
```

标签:Ansible, ECS, Microsoft Azure, Nginx, Terraform, Web服务器, 系统提示词, 自动化运维, 逆向工具