Advanced settings
Port, readiness probe, main file, CORS, security headers, and PHP memory.
Port
- Go to Settings → General.
- Enter a Port between
1and60000. - 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:
- In General, enter the Readiness probe URL, for example
/health. - 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
Dockerfileormain.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:
- Open the CORS tab.
- Enter the full origin, for example
https://example.com. - Click Add origin.
- 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:
- Enter the header name.
- Click Add header.
- Click update headers.
Security headers and iframes
In Settings → Advanced Setting:
- X-Frame-Options: one of Not Set (Default),
SAMEORIGIN, orDENY. - 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:
- Open Advanced Setting.
- Enter PHP-FPM Limit and PHP CLI Limit in MB.
- 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.