:80 { respond /health "OK" { close } } jt4d.ru, http://*.jt4d.jt4d.ru.net { root * /app encode gzip # Обработка API handle /api/* { reverse_proxy api:5000 } # Обработка остального (SPA) handle { try_files {path} /index.html file_server @static path *.js *.css *.woff *.woff2 *.svg *.png *.jpg *.jpeg *.gif *.ico header @static Cache-Control "public, max-age=31536000, immutable" } }