# Enabling HTTPS on Seascape Flex server

The Seascape Flex server is hosted using Kestrel, and the recommended way to make Kestrel work with HTTPS is by configuring the IIS to work as a reverse proxy.

To enable your IIS server to work as a reverse proxy for Seascape Flex follow these instructions:

1\. Install the [Application Request Routing module](https://www.iis.net/downloads/microsoft/application-request-routing) in IIS:

![](/files/MTLP3mSQIHVgVxXPGqGb)

2\. Once the module installed, right-click **Sites**, and click **Add Website**:

![](/files/sot3UwnhdMptwzWYf3Ew)

3\. In the Add Website popup select HTTPS in the Binding section and assign a port (e.g. port 445).

You must also select an **SSL certificate** to use, and select a **Physical path** folder (it can be an empty folder).

When you're done click OK to save your changes:

![](/files/yXBXIef17tbBDstzCQXO)

4\. Select the new site you created and double-click the **URL Rewrite** icon:

![](/files/IUlm9DZ5bRJr5io6v3ha)

5\. In the URL Rewrite window click **Add rule**:

![](/files/44PvSzQcgaIZA1IekZJk)

6\. A popup will appear as shown in the below example. Click the **Reverse Proxy** icon in the popup:

![](/files/bmY6TWxnXDnjYpzZnHHA)

7\. A new popup now appears as shown in the below example.

Now enter your server name or the IP address where Seascape Flex is hosted (by default that will be **localhost:7500**):

![](/files/PGvZwerduq3RZYecdhiI)

8\. Click OK to exit all popups and save your changes.

Your IIS server is now ready to start accepting HTTPS requests.

IIS will handle the HTTPS requests normally and then forward them to Kestrel in the background.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.swingsoftware.com/seascape-for-notes/seascape-flex/enabling-https-on-seascape-flex-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
