Compare commits
	
		
			4 Commits
		
	
	
		
			deeea7952c
			...
			main
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						e23083c55a
	
				 | 
					
					
						|||
| 
						
						
							
						
						03402dac2f
	
				 | 
					
					
						|||
| 
						
						
							
						
						0fea8e3133
	
				 | 
					
					
						|||
| 
						
						
							
						
						9c4303cf4d
	
				 | 
					
					
						
							
								
								
									
										25
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								README.md
									
									
									
									
									
								
							@@ -13,10 +13,14 @@ It supports wildcard certificates and multiple domains per certificate.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### 1. Set up environment file
 | 
					### 1. Set up environment file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Copy `.env.example` to `.env` and fill in your details:
 | 
					Generate `.env` file [View example](/.env.example)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					**Example .env file:**
 | 
				
			||||||
cp .env.example .env
 | 
					```env
 | 
				
			||||||
 | 
					CLOUDFLARE_EMAIL=user@example.com
 | 
				
			||||||
 | 
					CLOUDFLARE_API_KEY=your_global_api_key_here
 | 
				
			||||||
 | 
					CERTBOT_EMAIL=admin@example.com
 | 
				
			||||||
 | 
					DOMAINS=example.com,*.example.com,api.example.com
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Environment Variables:**
 | 
					**Environment Variables:**
 | 
				
			||||||
@@ -28,13 +32,6 @@ cp .env.example .env
 | 
				
			|||||||
  - Supports wildcards: `*.example.com,example.com`
 | 
					  - Supports wildcards: `*.example.com,example.com`
 | 
				
			||||||
  - Multiple domains: `example.com,api.example.com,*.sub.example.com`
 | 
					  - Multiple domains: `example.com,api.example.com,*.sub.example.com`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Example .env file:**
 | 
					 | 
				
			||||||
```env
 | 
					 | 
				
			||||||
CLOUDFLARE_EMAIL=user@example.com
 | 
					 | 
				
			||||||
CLOUDFLARE_API_KEY=your_global_api_key_here
 | 
					 | 
				
			||||||
CERTBOT_EMAIL=admin@example.com
 | 
					 | 
				
			||||||
DOMAINS=example.com,*.example.com,api.example.com
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 2. Create Docker Compose file
 | 
					### 2. Create Docker Compose file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -135,14 +132,6 @@ Certificates are valid for 90 days. To renew:
 | 
				
			|||||||
- **"Invalid credentials"**: Verify your Cloudflare email and API key
 | 
					- **"Invalid credentials"**: Verify your Cloudflare email and API key
 | 
				
			||||||
- **"Domain not found"**: Ensure domains are managed by your Cloudflare account
 | 
					- **"Domain not found"**: Ensure domains are managed by your Cloudflare account
 | 
				
			||||||
- **"Rate limited"**: Let's Encrypt has rate limits (50 certificates per week per domain)
 | 
					- **"Rate limited"**: Let's Encrypt has rate limits (50 certificates per week per domain)
 | 
				
			||||||
- **"DNS propagation failed"**: Wait a few minutes and retry
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Security Notes
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Keep your `.env` file secure and never commit it to version control
 | 
					 | 
				
			||||||
- Use API tokens instead of Global API Key when possible
 | 
					 | 
				
			||||||
- Restrict API token permissions to only necessary zones
 | 
					 | 
				
			||||||
- Regularly rotate your API credentials
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Supported Features
 | 
					## Supported Features
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,6 +14,9 @@ domain_args=""
 | 
				
			|||||||
for domain in "${DOMAIN_ARRAY[@]}"; do
 | 
					for domain in "${DOMAIN_ARRAY[@]}"; do
 | 
				
			||||||
    domain_args="$domain_args -d $(echo $domain | xargs)"
 | 
					    domain_args="$domain_args -d $(echo $domain | xargs)"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					mkdir -p /var/log/letsencrypt/
 | 
				
			||||||
 | 
					touch /var/log/letsencrypt/letsencrypt.log
 | 
				
			||||||
 | 
					tail -f /var/log/letsencrypt/letsencrypt.log &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "Generating certificate for domains: $DOMAINS"
 | 
					echo "Generating certificate for domains: $DOMAINS"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user