S SISL docs PL

Connecting the store to Optima

The Magento module polls the service on the Optima server, so the store has to be able to reach that service. The right route depends on where the store runs.

Store Route
Same network as Optima Local network
VPS or server with root access Tailscale
Shared hosting, no way to install software Tailscale Funnel
Static public IP at the Optima site and router access Your own HTTPS

Every data request carries an HMAC signature, and the service only reads the Optima database. Do not expose plain HTTP to the internet, because product and contractor data would travel unencrypted.

At the end of each route, check the connection from the store server using the service address:

curl <service-address>/healthz

A correct reply contains "connected":true and "license":{"valid":true. On hosting without a console, use SISL Optima → Diagnostics.

Local network

The store and Optima see each other directly or through a company VPN.

  1. In appsettings.Local.json set "ListenUrl": "http://192.168.1.20:5000" with the Optima server's address.
  2. Run install-service.ps1. The installer opens the port for private addresses only.
  3. Enter the same address as the service address in the store's admin panel.

Tailscale

Tailscale creates an encrypted private network between the two servers. No router port forwarding is needed.

On the Optima server (Windows):

  1. Install Tailscale from tailscale.com and sign in.
  2. Enable unattended mode, otherwise the connection drops when you sign out of the server:
tailscale set --unattended=true
  1. Read the server's address:
tailscale ip -4
  1. In appsettings.Local.json set "ListenUrl": "http://100.x.y.z:5000" with that address.
  2. Run install-service.ps1.

On the store server (Linux):

curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up

Sign in to the same account. In the store's admin panel enter http://100.x.y.z:5000.

Tailscale Funnel

Funnel publishes the service at a public HTTPS address, and nothing has to be opened on the router. You install nothing on the store server, so this route works on shared hosting.

The service is then visible from the internet. HMAC signatures protect the data, and /healthz answers without a signature, showing only the version and the connection and licence state.

On the Optima server (Windows):

  1. Install Tailscale, sign in and enable unattended mode:
tailscale set --unattended=true
  1. In appsettings.Local.json keep "ListenUrl": "http://127.0.0.1:5000" and run install-service.ps1.
  2. Turn on Funnel. The first run shows a link to approve it in your Tailscale account:
tailscale funnel --bg 5000

With --bg, Funnel runs in the background and comes back after a server restart.

  1. Read the public address:
tailscale funnel status
  1. In the store's admin panel enter the address in the form https://server-name.your-tailnet.ts.net.

Tailscale describes Funnel as a beta feature and applies bandwidth limits it does not publish. For a very large catalogue, reduce the page size in the configuration or use your own HTTPS.

Your own HTTPS

This needs a static public address at the Optima server, a domain, and a certificate from a trusted authority such as Let's Encrypt. The module verifies the certificate, so a self-signed one will not work.

  1. Point a domain such as optima.yourcompany.com at the company's public address.
  2. On the router, forward a chosen port such as 5443 to the Optima server.
  3. Save the certificate and private key as a PFX file, for example C:\Sisl\cert\optima.pfx.
  4. In appsettings.Local.json add a Kestrel section at the top level, next to Sisl. It replaces ListenUrl:
{
  "Kestrel": {
    "Endpoints": {
      "Https": {
        "Url": "https://0.0.0.0:5443",
        "Certificate": { "Path": "C:/Sisl/cert/optima.pfx", "Password": "file-password" }
      }
    }
  },
  "Sisl": { "SharedSecret": "..." }
}
  1. Run the installer with the store's public IP address. The firewall will allow only that address and private networks:
powershell -ExecutionPolicy Bypass -File .\install-service.ps1 -AllowFrom 203.0.113.10
  1. In the store's admin panel enter https://optima.yourcompany.com:5443.

Your hosting company can tell you the store's public address. If it changes, run the installer again with the new one. After a certificate renewal, replace the PFX file and restart the service with Restart-Service SislSyncService.

Next step: Configuration →