Optional Step: Only needed if you will not use any loadbalancer or proxy server.
/etc/nginx/sites-available/kodus (or a name of your choice, e.g., kodus-web and kodus-api as separate files if preferred) and create a symbolic link to enable it:
Important Configuration Update for Reverse Proxy:After setting up the reverse proxy with
kodus-web.yourdomain.com and kodus-api.yourdomain.com (or your chosen subdomains), you must ensure your .env file correctly reflects these public URLs. Specifically, verify:WEB_HOSTNAME_API: Should be set to only the hostname of your public API (e.g.,kodus-api.yourdomain.com), without any protocol (http://orhttps://).WEB_PORT_API: Should correspond to the public port your API is accessible on (typically443for HTTPS or80for HTTP). The scheme (http/https) used by the frontend to call the API will often be inferred from this port or hardcoded in the frontend logic to use HTTPS.- Webhook URLs (e.g.,
API_GITHUB_CODE_MANAGEMENT_WEBHOOK): Ensure these are updated in your.envfile to use your full public API domain including the scheme (e.g.,https://kodus-api.yourdomain.com/github/webhook).