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