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") |     pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10") | ||||||
| end) | 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+) | # ## Using releases (Elixir v1.9+) | ||||||
| # | # | ||||||
| # If you are doing OTP releases, you need to instruct Phoenix | # If you are doing OTP releases, you need to instruct Phoenix | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ spec: | ||||||
|           ports: |           ports: | ||||||
|             - containerPort: 4000 |             - containerPort: 4000 | ||||||
|           env: |           env: | ||||||
|  |             - name: HOSTNAME | ||||||
|  |               value: legendaryframework.org | ||||||
|             - name: DATABASE_URL |             - name: DATABASE_URL | ||||||
|               valueFrom: |               valueFrom: | ||||||
|                 secretKeyRef: |                 secretKeyRef: | ||||||
|  | @ -39,6 +41,21 @@ spec: | ||||||
|                 secretKeyRef: |                 secretKeyRef: | ||||||
|                   name: legendary |                   name: legendary | ||||||
|                   key: live-view-signing-salt |                   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 | apiVersion: v1 | ||||||
| kind: Service | kind: Service | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Robert Prehn
						Robert Prehn