mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Добавлена поддержка smtp для production через контейнер на главном сайте
This commit is contained in:
		@@ -9,6 +9,10 @@ AUTHSERVER_HOST=authserver.ely.by
 | 
			
		||||
# LETSENCRYPT_HOST=account.ely.by
 | 
			
		||||
# LETSENCRYPT_EMAIL=erickskrauch@ely.by
 | 
			
		||||
 | 
			
		||||
# SMTP (только для production)
 | 
			
		||||
SMTP_USER=
 | 
			
		||||
SMTP_PASS=
 | 
			
		||||
 | 
			
		||||
# MySQL
 | 
			
		||||
MYSQL_ALLOW_EMPTY_PASSWORD=yes
 | 
			
		||||
MYSQL_ROOT_PASSWORD=
 | 
			
		||||
 
 | 
			
		||||
@@ -6,5 +6,22 @@ return [
 | 
			
		||||
            'schemaCacheDuration' => 3600,
 | 
			
		||||
            'schemaCache' => 'cache',
 | 
			
		||||
        ],
 | 
			
		||||
        'mailer' => [
 | 
			
		||||
            'useFileTransport' => false,
 | 
			
		||||
            'transport' => [
 | 
			
		||||
                'class' => Swift_SmtpTransport::class,
 | 
			
		||||
                'host' => 'ely.by',
 | 
			
		||||
                'username' => getenv('SMTP_USER'),
 | 
			
		||||
                'password' => getenv('SMTP_PASS'),
 | 
			
		||||
                'port' => 587,
 | 
			
		||||
                'encryption' => 'tls',
 | 
			
		||||
                'streamOptions' => [
 | 
			
		||||
                    'ssl' => [
 | 
			
		||||
                        'allow_self_signed' => true,
 | 
			
		||||
                        'verify_peer' => false,
 | 
			
		||||
                    ],
 | 
			
		||||
                ],
 | 
			
		||||
            ],
 | 
			
		||||
        ],
 | 
			
		||||
    ],
 | 
			
		||||
];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user