fix: Add production config for Bamboo
This commit is contained in:
		
							parent
							
								
									1e9c1cdba6
								
							
						
					
					
						commit
						9555bf5913
					
				
					 2 changed files with 31 additions and 0 deletions
				
			
		|  | @ -65,6 +65,20 @@ database_url = System.get_env("DATABASE_URL") | |||
|     pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10") | ||||
| end) | ||||
| 
 | ||||
| config :core, Legendary.CoreMailer, | ||||
|   adapter: Bamboo.SMTPAdapter, | ||||
|   server: {:system, "SMTP_HOST"}, | ||||
|   hostname: {:system, "HOSTNAME"}, | ||||
|   port: 25, | ||||
|   username: {:system, "SMTP_USERNAME"}, | ||||
|   password: {:system, "SMTP_PASSWORD"}, | ||||
|   tls: :if_available, | ||||
|   allowed_tls_versions: [:"tlsv1", :"tlsv1.1", :"tlsv1.2"], | ||||
|   ssl: false, | ||||
|   retries: 1, | ||||
|   no_mx_lookups: false, | ||||
|   auth: :always | ||||
| 
 | ||||
| # ## Using releases (Elixir v1.9+) | ||||
| # | ||||
| # If you are doing OTP releases, you need to instruct Phoenix | ||||
|  |  | |||
|  | @ -24,6 +24,8 @@ spec: | |||
|           ports: | ||||
|             - containerPort: 4000 | ||||
|           env: | ||||
|             - name: HOSTNAME | ||||
|               value: legendaryframework.org | ||||
|             - name: DATABASE_URL | ||||
|               valueFrom: | ||||
|                 secretKeyRef: | ||||
|  | @ -39,6 +41,21 @@ spec: | |||
|                 secretKeyRef: | ||||
|                   name: legendary | ||||
|                   key: live-view-signing-salt | ||||
|             - name: SMTP_HOST | ||||
|               valueFrom: | ||||
|                 secretKeyRef: | ||||
|                   name: legendary | ||||
|                   key: smtp-host | ||||
|             - name: SMTP_USERNAME | ||||
|               valueFrom: | ||||
|                 secretKeyRef: | ||||
|                   name: legendary | ||||
|                   key: smtp-username | ||||
|             - name: SMTP_HOST | ||||
|               valueFrom: | ||||
|                 secretKeyRef: | ||||
|                   name: legendary | ||||
|                   key: smtp-password | ||||
| --- | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue