Docs

Advanced settings

Port, readiness probe, main file, CORS, security headers, and PHP memory.

Port

  1. Go to Settings → General.
  2. Enter a Port between 1 and 60000.
  3. Click Save.
The app must listen on this port. The project restarts after the change.

Readiness probe

The URL that tells Lexoya when the app is ready to receive traffic:
  1. In General, enter the Readiness probe URL, for example /health.
  2. Click Save.
If it is empty, Lexoya assumes the app is ready as soon as it starts. Changing it restarts the project.

Main file and version

  • Main file is the Dockerfile for Docker projects. For Golang, FastAPI, and .NET choose the main file; for Supervisor choose the config directory.
  • For an archive project, enter the path inside the archive, for example Dockerfile or main.go.
  • Version is the project stack version. Changing it creates a new pipeline.

CORS

CORS allow origins

The list of sites allowed to send requests to your app:
  1. Open the CORS tab.
  2. Enter the full origin, for example https://example.com.
  3. Click Add origin.
  4. Click update origins to apply.
Use * to allow all origins. At least one origin must remain.

CORS allow headers

Headers the browser is allowed to send:
  1. Enter the header name.
  2. Click Add header.
  3. Click update headers.

Security headers and iframes

In Settings → Advanced Setting:
  • X-Frame-Options: one of Not Set (Default), SAMEORIGIN, or DENY.
  • CSP frame-src: domains allowed to embed your site in an iframe, for example https://*.example.com.
Click Save after the change. The project restarts.

PHP memory

For Laravel and PHP-based Supervisor projects:
  1. Open Advanced Setting.
  2. Enter PHP-FPM Limit and PHP CLI Limit in MB.
  3. Click Save.
The minimum is 64 MB, and the project restarts after the change.

Note

Changing the port, readiness probe, version, main file, security headers, or PHP memory causes a restart or a new pipeline. Apply changes during low traffic.

Related