mcneel / compute.rhino3d

REST geometry server based on RhinoCommon and headless Rhino
Other
288 stars 184 forks source link

Running server on Windows 10 #109

Closed abitrolly closed 3 years ago

abitrolly commented 4 years ago

Is it possible to run it on Windows 10 for development purposes? It fails with err: frontend Url not reserved. Running netsh http add urlacl url="http://+:80/" user="Everyone" in administrator console gives this:

Create SDDL failed, Error: 1332
 The parameter is incorrect.
mcneel-build commented 4 years ago

Linked with COMPUTE-124

sbaer commented 4 years ago

You need to run a debug build of compute for local development. Currently Visual Studio is required for compiling

abitrolly commented 4 years ago

I could compile it with Visual Studio Code. Now it works on localhost. Is it possible to add COMPUTE_HTTP_HOST to configure the hostname without recompiling?

sbaer commented 4 years ago

Probably best to detect the OS and do the right thing based on if you are in a server or desktop environment

pearswj commented 4 years ago

There's a COMPUTE_BIND_URLS environment variable that you can use to configure the host/port that compute will listen on. If unset, the default for debug builds is http://localhost:8081. For release builds it's http://+:8081, which will require the URL to be reserved.

Our docs a little bit behind right now (see the video from @sbaer's recent workshop for the most up-to-date guide). The current recommendation is to ignore compute.frontend and instead run compute.geometry directly -- just in case you weren't doing this already!

abitrolly commented 4 years ago

@pearswj I don't see the COMPUTE_BIND_URLS documented - https://github.com/mcneel/compute.rhino3d/blob/master/docs/environment_variables.md

pearswj commented 4 years ago

You're right. The majority of those options relate to compute.frontend and the whole thing needs overhauling. I added the COMPUTE_BIND_URLS env var in 84957e49bacb1fec7a730260e60af5f723bd5bab.

abitrolly commented 4 years ago

The current recommendation is to ignore compute.frontend and instead run compute.geometry directly -- just in case you weren't doing this already!

I will try to. Thanks. )