2021-05-09 11:25:13 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								package config
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								// LetsEncryptConfig wraps everything needed to manage letsencrypt certificates from within gotosocial.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								type LetsEncryptConfig struct {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									// Should letsencrypt certificate fetching be enabled?
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-24 18:55:24 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									Enabled bool `yaml:"enabled"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									// What port should the server listen for letsencrypt challenges on?
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Port int `yaml:"port"`
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-09 11:25:13 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									// Where should certificates be stored?
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-24 18:55:24 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									CertDir string `yaml:"certDir"`
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-09 11:25:13 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									// Email address to pass to letsencrypt for notifications about certificate expiry etc.
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-24 18:55:24 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									EmailAddress string `yaml:"emailAddress"`
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-09 11:25:13 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |