mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-30 18:07:46 +00:00 
			
		
		
		
	Make less matching less strict again (#140)
* remove setting insecure cookies by default
* less strict matching partially undoes 48e22da9d1
			
			
This commit is contained in:
		
							parent
							
								
									b75403f69a
								
							
						
					
					
						commit
						c5756e30c9
					
				| @ -22,11 +22,10 @@ php_cfg_gen() { | ||||
| 		fi | ||||
| 		case $cfg_value in | ||||
| 		true|TRUE|false|FALSE) | ||||
| 			echo boolean value | ||||
| 			sed -ri "s#(\s*define).+${cfg_setting}'.+#\tdefine(\x27${cfg_setting}\x27, ${cfg_value}\);#g" "$cfg_file" | ||||
| 			sed -ri "s#(\s*define).+${cfg_setting}.+#\tdefine(\x27${cfg_setting}\x27, ${cfg_value}\);#g" "$cfg_file" | ||||
| 			;; | ||||
| 		*) | ||||
| 			sed -ri "s#(\s*define).+${cfg_setting}'.+#\tdefine(\x27${cfg_setting}\x27, \x27${cfg_value}\x27\);#g" "$cfg_file" | ||||
| 			sed -ri "s#(\s*define).+${cfg_setting}.+#\tdefine(\x27${cfg_setting}\x27, \x27${cfg_value}\x27\);#g" "$cfg_file" | ||||
| 			;; | ||||
| 		esac | ||||
| 	else | ||||
| @ -58,9 +57,6 @@ else | ||||
| 	php_cfg_gen /etc/kopano/webapp/config.php DEFAULT_SERVER "https://${KCCONF_SERVERHOSTNAME}:${KCCONF_SERVERPORT}/kopano" | ||||
| fi | ||||
| 
 | ||||
| echo "Configuring Kopano WebApp for use behind a reverse proxy" | ||||
| php_cfg_gen /etc/kopano/webapp/config.php INSECURE_COOKIES true | ||||
| 
 | ||||
| # configuring webapp from env | ||||
| for setting in $(compgen -A variable KCCONF_WEBAPP_); do | ||||
| 	setting2=${setting#KCCONF_WEBAPP_} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user