-
Notifications
You must be signed in to change notification settings - Fork 122
Run HTTP-Proxy on Port 80? #253
Comments
The quickest way is probably:
|
Thanks @minrk. Bare with me, as I am new to this project. So far, I have basically done the basics on an Ubuntu 14 host in AWS. docker pull jupyter/minimal-notebook This gets me up and running easy on port 8000. When you say to run python orchestrate.py --port=80, I am not sure where I run that from. If you could provide a little more guidance, I would greatly appreciate it. |
The proxy is run separately with tmpnb, you'll need to set the port there:
However, to do that you'd need to change options on tmpnb itself which I don't think are exposed... It would look something like:
|
When I attempt: docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=proxy jupyter/configurable-http-proxy --default-target http://127.0.0.1:9999 --port 80 it throws an error and the container doesn't start: 13:19:34.157 - info: [ConfigProxy] Proxying http://*:80 to http://127.0.0.1:9999 13:19:34.161 - info: [ConfigProxy] Proxy API at http://localhost:81/api/routes events.js:154 throw er; // Unhandled 'error' event ^ Error: listen EACCES 0.0.0.0:80 at Object.exports._errnoException (util.js:890:11) at exports._exceptionWithHostPort (util.js:913:20) at Server._listen2 (net.js:1221:19) at listen (net.js:1270:10) at Server.listen (net.js:1366:5) at Object. (/usr/local/lib/node_modules/configurable-http-proxy/bin/configurable-http-proxy:191:20) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) |
You need root permissions to listen on port 80, normally, and CHP isn't run as root. You could run the proxy without
Alternately, you could run the proxy outside docker. |
|
|
Thanks. |
I am pretty new to some of this. What is the quickest way to spin up the proxy on Port 80 vs. the default 8000?
Thanks.
The text was updated successfully, but these errors were encountered: