Skip to content

Commit ac0f2bf

Browse files
Merge pull request #8517 from mendix/kk-pmp-svix-ssl
Private Mendix Platform - self-signed certificates for Svix
2 parents ba05b50 + 6181409 commit ac0f2bf

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

content/en/docs/private-platform/pmp-quickstart.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,49 @@ Private Cloud License Manager is a required component of Private Mendix Platform
160160
161161
Svix is required if you want to use webhooks. Install the Svix component by doing the following steps:
162162
163-
1. Run the command `./installer component -n=<namespace name>`, where `-n` indicates a namespace. The namespace must be the same as the namespace that you plan to use for Private Mendix Platform.
164-
2. Select **Svix** and specify the following parameters:
163+
1. Optional: If you are using a self-signed TLS certificate, build and deploy a private Svix server with custom self-signed TLS certification by performing the following steps:
164+
1. Prepare the following Docker file to build a private Svix server image:
165+
166+
```text
167+
# Base build
168+
FROM svix/svix-server:v1.25.0
169+
# Add customer certification into system cert trust chain
170+
COPY ./customer.crt /usr/local/share/ca-certificates/
171+
USER root
172+
RUN update-ca-certificates
173+
# Start svix service
174+
USER appuser
175+
CMD \
176+
set -ex ; \
177+
if [ ! -z "$WAIT_FOR" ]; then \
178+
WAIT_FOR_ARG="--wait-for 15"; \
179+
fi ; \
180+
exec svix-server --run-migrations $WAIT_FOR_ARG
181+
```
182+
183+
2. Build your private Svix server image with the above Docker file and your self-signed TLS certificate file by running the following command:
184+
185+
```text
186+
docker build -t {customer-private-image-registry-url}/svix/svix-server:v1.25.tls
187+
```
188+
189+
3. Push your private Svix server image to your private image registry by running the following command:
190+
191+
```text
192+
docker push {customer-private-image-registry-url}/svix/svix-server:v1.25.tls
193+
```
194+
195+
2. Run the command `./installer component -n=<namespace name>`, where `-n` indicates a namespace. The namespace must be the same as the namespace that you plan to use for Private Mendix Platform.
196+
3. Select **Svix**, and then specify the following parameters:
165197
166198
* **POSTGRES_DSN** - A Postgres DSN, for example, `postgresql://postgres:postgres@pgbouncer/postgres`.
167-
* **REDIS_DSN** - An optional Redis DSN, for example, `redis://redis:6379`. You can leave this field blank if you are not using Redis.
168-
* **SVIX_QUEUE_TYPE** - The type of message queue that Svix should use. For a default configuration without Redis, this should be set to **memory**. If you are using Redis, set this value to **redis**.
169-
* **SVIX_CACHE_TYPE** - The type of message cache that Svix should use. For a default configuration without Redis, this should be set to **memory**. If you are using Redis, set this value to **redis**.
199+
* **Image** - The Svix image path. The default path is `svix/svix-server:v1.25.0`. If you are using a self-signed TLS certificate, set this path to `{customer-private-image-registry-url}/svix/svix-server:v1.25.tls`.
200+
* **Use Redis** - Optional. Select this check box if you want to use Redis for message cache and queues.
201+
* **REDIS_DSN** - The Redis DSN, for example, `redis://redis:6379`. This field is only available if you select the **Use Redis** check box.
202+
203+
4. Click **Install Svix** or **Upgrade Svix**.
170204
171-
3. Click **Install Svix**.
205+
{{< figure src="/attachments/private-platform/pmp-installer-update-svix.png" class="no-border" >}}
172206
173207
{{% alert color="info" %}}
174208
The installer does not catch your pod's running status. In case of issues, verify that the pod is running correctly.
37 KB
Loading

0 commit comments

Comments
 (0)