mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	add TL;DR
This commit is contained in:
		
							parent
							
								
									4b24cc48e9
								
							
						
					
					
						commit
						374c360967
					
				
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							| @ -89,18 +89,31 @@ Works with _any_ node http app, including | |||||||
| 
 | 
 | ||||||
| Serving sites with Free SSL is as easy as 1, 2, 3... 4 | Serving sites with Free SSL is as easy as 1, 2, 3... 4 | ||||||
| 
 | 
 | ||||||
| ### Overview | ## Overview | ||||||
| 
 | 
 | ||||||
| 1. Create a Project with Greenlock Express | 1. Create a Project with Greenlock Express | ||||||
|     - `server.js` |     - `server.js` | ||||||
|     - `app.js` |     - `app.js` | ||||||
| 2. Setup the config file (or database) | 2. Setup the config file (or database) | ||||||
|  |     - `.greenlockrc` | ||||||
|     - `greenlock.d/config.json` |     - `greenlock.d/config.json` | ||||||
| 3. Add Domains | 3. Add Domains | ||||||
|     - `npx greenlock add --subject example.com --altnames example.com` |     - `npx greenlock add --subject example.com --altnames example.com` | ||||||
| 4. Hello, World! | 4. Hello, World! | ||||||
|     - `npm start -- --staging` |     - `npm start -- --staging` | ||||||
| 
 | 
 | ||||||
|  | ### TL;DR | ||||||
|  | 
 | ||||||
|  | If you're familiar with node, npm, and npx: this is all you need to do: | ||||||
|  | 
 | ||||||
|  | ```bash | ||||||
|  | npx greenlock init --config-dir greenlock.d --maintainer-email jon@example.com | ||||||
|  | npx greenlock add --subject example.com --altnames example.com | ||||||
|  | npm start -- --staging | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | Once you've tested that that works, you can change `app.js` to suit your needs replace the built-in callbacks for things like certificate storage as you like. | ||||||
|  | 
 | ||||||
| ## 1. Create your Project | ## 1. Create your Project | ||||||
| 
 | 
 | ||||||
| If you need to install Node.js, do so: | If you need to install Node.js, do so: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user