first commit symfony 6
This commit is contained in:
parent
dd85dcd74a
commit
52736bc3f8
15
README.md
15
README.md
|
@ -121,6 +121,12 @@ sample apache configuration in /etc/apache2/site-available/000-
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost *:1080>
|
||||||
|
# For mailer server
|
||||||
|
ProxyPass / http://localhost:1080/
|
||||||
|
ProxyPassReverse / http://localhost:1080/
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -135,7 +141,14 @@ cp /var/www/html/nineskeletor/bin/nineskeletor.cron /etc/cron.d/nineskeletor
|
||||||
## Messenger worker
|
## Messenger worker
|
||||||
|
|
||||||
Make sure the messenger consume the bus
|
Make sure the messenger consume the bus
|
||||||
Need to send mail
|
Needed to send mail
|
||||||
|
You can copy this bin/nineskeletor.service in your systemd
|
||||||
|
```
|
||||||
|
cp /var/www/html/nineskeletor/bin/nineskeletor.service /etc/systemd/system/
|
||||||
|
systemctl enable nineskeletor.service
|
||||||
|
systemctl start nineskeletor.service
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
StartLimitIntervalSec=20s
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/php -d memory_limit=-1 /var/www/html/nineskeletor/bin/console messenger:consume async --memory-limit=512m --env=prod
|
||||||
|
Restart=always
|
||||||
|
RestartSec=1
|
||||||
|
TimeoutSec=300
|
||||||
|
User=www-data
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -205,8 +205,8 @@ class RegistrationController extends AbstractController
|
||||||
// Récupération des data du formulaire
|
// Récupération des data du formulaire
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|
||||||
// si mode de registration byuser
|
// si mode de registration BYUSER
|
||||||
if($appmoderegistration=="byuser") {
|
if($appmoderegistration=="BYUSER") {
|
||||||
$idstatut=2;
|
$idstatut=2;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -714,7 +714,7 @@ class RegistrationController extends AbstractController
|
||||||
if ($form->get('submit')->isClicked() && $mode=="submit") {
|
if ($form->get('submit')->isClicked() && $mode=="submit") {
|
||||||
// Si validation par administrateur demander une motivation
|
// Si validation par administrateur demander une motivation
|
||||||
$appmoderegistration = $this->getParameter('appModeregistration');
|
$appmoderegistration = $this->getParameter('appModeregistration');
|
||||||
if(is_null($data->getMotivation())&&$appmoderegistration=="byadmin") {
|
if(is_null($data->getMotivation())&&$appmoderegistration=="BYADMIN") {
|
||||||
// On recherche le domaine du mail dans la liste blanche
|
// On recherche le domaine du mail dans la liste blanche
|
||||||
$email=explode("@",$data->getEmail());
|
$email=explode("@",$data->getEmail());
|
||||||
$domaine=end($email);
|
$domaine=end($email);
|
||||||
|
|
Loading…
Reference in New Issue