The connection to Heroku's Postgres instances must use SSL, but not check the certificate. This adds the necessary configuration to the Heroku setup script. Fixes #1245 Signed-off-by: David Mehren <git@herrmehren.de>
		
			
				
	
	
		
			23 lines
		
	
	
		
			283 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			283 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| cat << EOF > config.json
 | |
| 
 | |
| {
 | |
|   "production": {
 | |
|     "db": {
 | |
|       "dialect": "postgres",
 | |
|       "protocol": "postgres",
 | |
|       "dialectOptions": {
 | |
|         "ssl": {
 | |
|            "require": true,
 | |
|            "rejectUnauthorized": false
 | |
|         }
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| }
 | |
| 
 | |
| EOF
 |