Montesuma80 / 3cx-web-API

an local API to Controll your 3CX v16/v18 over HTTP
77 stars 38 forks source link

Best way to publish API #29

Closed marvhh closed 8 months ago

marvhh commented 1 year ago

Hi,

as I'm not good in serving HTTP/S Applications under windows my question is: what is the best way to publish the API? I thought about following methods:

  1. create a windows service and start the .dll or .exe file and put it behind a reverse proxy (nginx, IIS, ...)
  2. Publish the App over Windows IIS (as I'm not familiar with IIS, I dont know if a dll/exe could be deployed over IIS)

The advantage of a reverse proxy would be Authorzation and SSL termination. How you guys did it?

marvhh commented 8 months ago

I got a solution for this. I'm using winsw

Example Service xml:

<service>  
  <id>3cx-api</id>
  <name>3CX WEB-API</name>
  <description>3CX WEB-API from github.com/Montesuma80/3cx-web-API</description>
  <workingdirectory>C:\3CX-web-API\bin\Debug\net7.0</workingdirectory>
  <executable>C:\3CX-web-API\bin\Debug\net7.0\WebAPICore.exe</executable>
</service>