| 
									
										
										
										
											2021-09-23 09:14:09 +02:00
										 |  |  |  | 'use strict'; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | const cronTasks = require('./src/cron-tasks'); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-03 22:31:20 +02:00
										 |  |  |  | module.exports = ({ env }) => ({ | 
					
						
							| 
									
										
										
										
											2020-04-29 16:22:22 +02:00
										 |  |  |  |   host: env('HOST', '0.0.0.0'), | 
					
						
							|  |  |  |  |   port: env.int('PORT', 1337), | 
					
						
							| 
									
										
										
										
											2022-01-07 14:41:29 +01:00
										 |  |  |  |   url: 'http://localhost:1337', | 
					
						
							| 
									
										
										
										
											2021-09-23 09:14:09 +02:00
										 |  |  |  |   cron: { | 
					
						
							|  |  |  |  |     enabled: true, | 
					
						
							|  |  |  |  |     tasks: cronTasks, | 
					
						
							|  |  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2022-01-07 14:41:29 +01:00
										 |  |  |  |   app: { | 
					
						
							| 
									
										
										
										
											2022-01-25 11:06:52 +01:00
										 |  |  |  |     keys: env.array('APP_KEYS', ['toBeModified1', 'toBeModified2']), | 
					
						
							| 
									
										
										
										
											2022-01-07 14:41:29 +01:00
										 |  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2023-01-19 14:53:37 +01:00
										 |  |  |  |   webhooks: { | 
					
						
							|  |  |  |  |     // TODO: V5, set to false by default
 | 
					
						
							|  |  |  |  |     // Receive populated relations in webhook and db lifecycle payloads
 | 
					
						
							|  |  |  |  |     // This only populates relations in all content-manager endpoints
 | 
					
						
							|  |  |  |  |     populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', true), | 
					
						
							|  |  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2023-04-14 10:06:30 +02:00
										 |  |  |  |   // ℹ️ http_proxy is the env var used by system to set proxy globally
 | 
					
						
							| 
									
										
										
										
											2023-04-14 09:47:53 +02:00
										 |  |  |  |   globalProxy: env('http_proxy'), | 
					
						
							| 
									
										
										
										
											2020-04-03 22:31:20 +02:00
										 |  |  |  | }); |