iisnode encountered an error when processing the request.

HRESULT: 0x2
HTTP status: 500
HTTP subStatus: 1002
HTTP reason: Internal Server Error

You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.

In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.

The last 64k of the output generated by the node.exe process to stderr is shown below:

[KONFIGURACE] VAROVANI: APP_BASE_URL by v produkci mela zacinat na https://
[KONFIGURACE] VAROVANI: SMTP_HOST neni nastaven - e-maily se nebudou odesilat, pouze logovat do konzole (viz README.md)
[KONFIGURACE] CHYBA: SESSION_SECRET neni nastaven na bezpecnou hodnotu
[CHYBA] Aplikaci se nepodarilo spustit: Error: Nevalidni konfigurace pro produkcni provoz (1 chyba/chyby) - viz vypis vyse.
    at validateEnv (file:///C:/Inetpub/vhosts/svca.cz/app.svca.cz/src/config/validateEnv.js:79:11)
    at file:///C:/Inetpub/vhosts/svca.cz/app.svca.cz/src/server.js:3:1
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:432:15)