Skip to content

Commit ae3fed8

Browse files
committed
Update installation guide with encryption key/IV generation and async DSN details
1 parent 3afeab1 commit ae3fed8

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

doc/installation.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
MESSENGER_USER_COM_ASYNCHRONOUS_DSN=""
1313
```
1414
- You can find the `USER_COM_FRONTEND_API_KEY` in the User.Com integration guide for `Google Tag Manager (Settings->Setup & Integrations)`.
15-
- `USER_COM_COOKIE_DOMAIN` is optional, if not set, cookies will be set for the current domain.
15+
- `USER_COM_ENCRYPTION_KEY` and `USER_COM_ENCRYPTION_IV` are required for cookie encryption.
16+
- You can generate the encryption key and IV using the following command:
17+
```bash
18+
php -r '$key = bin2hex(random_bytes(16)); echo "USER_COM_ENCRYPTION_KEY=\"" . $key . "\"\n"; $iv = bin2hex(random_bytes(8)); echo "USER_COM_ENCRYPTION_IV=\"" . $iv . "\"\n";'
19+
```
20+
- `MESSENGER_USER_COM_ASYNCHRONOUS_DSN` is the DSN for the messenger transport that will handle asynchronous messages. You can use different transports like `doctrine://default`, `amqp://guest:guest@localhost:5672/%2f/messages`, etc.
21+
22+
- `USER_COM_COOKIE_DOMAIN` is optional, if not set, cookies will be set for the current domain.
1623

1724

1825
3. Add plugin dependencies to `config/bundles.php` file. Make sure that none of the bundles are duplicated.

ecs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818
VisibilityRequiredFixer::class => ['*Spec.php'],
1919
]);
2020
};
21-

0 commit comments

Comments
 (0)