bitforum-frontend.xml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. WinSW config for bitForum Frontend (Next.js 15 standalone).
  4. Deploy path: C:\workspace\IIS\bitforum-front
  5. Port 3001 (antooza-frontend uses 3000). IIS bitforum-front reverse-proxies :80 -> 127.0.0.1:3001.
  6. Service binary bitforum-frontend.exe (renamed WinSW) is auto-provisioned from antooza-front by the Jenkinsfile on first deploy.
  7. -->
  8. <service>
  9. <id>bitforum-frontend</id>
  10. <name>bitForum Frontend (Next.js standalone)</name>
  11. <description>Next.js production server for bitforum.io (port 3001)</description>
  12. <executable>node</executable>
  13. <arguments>server.js</arguments>
  14. <workingdirectory>C:\workspace\IIS\bitforum-front</workingdirectory>
  15. <env name="NODE_ENV" value="production"/>
  16. <env name="PORT" value="3001"/>
  17. <env name="HOSTNAME" value="127.0.0.1"/>
  18. <env name="NODE_TLS_REJECT_UNAUTHORIZED" value="1"/>
  19. <log mode="roll-by-size">
  20. <sizeThreshold>10240</sizeThreshold>
  21. <keepFiles>5</keepFiles>
  22. </log>
  23. <onfailure action="restart" delay="10 sec"/>
  24. <onfailure action="restart" delay="30 sec"/>
  25. <onfailure action="restart" delay="60 sec"/>
  26. <resetfailure>1 hour</resetfailure>
  27. <stoptimeout>30 sec</stoptimeout>
  28. <stopparentprocessfirst>true</stopparentprocessfirst>
  29. </service>