cookie ready
This commit is contained in:
@@ -30,6 +30,7 @@ The service now loads `.env` automatically from the project root at startup.
|
||||
Important variables:
|
||||
|
||||
- `PRESTASHOP_PROXY_TARGET`: upstream PrestaShop origin, required
|
||||
- `DOMAIN_COOKIE`: optional domain override used when deriving the hashed `PrestaShop-...` cookie name
|
||||
- `PRESTASHOP_COOKIE_NAME`: optional explicit cookie-name override. If omitted, the app derives the standard `PrestaShop-...` name from PrestaShop version and normalized host, and still falls back to prefix matching on reads.
|
||||
- `PRESTASHOP_COOKIE_KEY`: Defuse/PrestaShop cookie key, required unless bootstrap from install root is used
|
||||
- `DB_USER`, `DB_PASS`, `DB_NAME`, `DB_HOST`, `DB_PORT`: preferred split MariaDB settings
|
||||
@@ -89,6 +90,18 @@ Default listen address is `:8080`.
|
||||
- `GET /healthz`
|
||||
- `GET /readyz`
|
||||
|
||||
## Debug endpoint
|
||||
|
||||
- `GET|POST /debug/cookie/decode`
|
||||
|
||||
Pass a cookie explicitly with `value` or `cookie`, for example:
|
||||
|
||||
```bash
|
||||
curl "http://localhost:8080/debug/cookie/decode?value=def50200..."
|
||||
```
|
||||
|
||||
If no parameter is provided, the endpoint returns the cookie already decoded from the incoming request session.
|
||||
|
||||
## Cookie support
|
||||
|
||||
Native cookie logic lives in [internal/prestashop/cookie/codec.go](/home/marek/coding/test/pp/internal/prestashop/cookie/codec.go:1).
|
||||
|
||||
Reference in New Issue
Block a user