Skip to content

Instantly share code, notes, and snippets.

@dianabotean
dianabotean / default.conf
Created Aug 12, 2021
setup multi website m2
View default.conf
#$cat /var/www/.docker/nginx/conf/conf.d/default.conf
upstream fastcgi_backend {
server phpfpm-project:9000;
}
map $http_host $WEBSITE_CODE {
store.de.local base;
store.at.local store_de_at;
store.fr.local store_fr_fr;
}
@dianabotean
dianabotean / env.php
Created Feb 11, 2021
move open source queues to rabbit
View env.php
[
(...)
'queue' => [
'amqp' => [
'host' => '<rabbitmq_host>',
'port' => '<rabbitmq_port>',
'user' => '<rabbitmq_user>',
'password' => '<rabbitmq_pass>',
'virtualhost' => '/',
'ssl' => false
@dianabotean
dianabotean / customer_entity_anonymize.sql
Created Jun 19, 2020
Anonymize customer email address
View customer_entity_anonymize.sql
update customer_entity set email = (select concat(left(uuid(), 8), '@fakeaddress.com'));