Code Monkey home page Code Monkey logo

Comments (7)

shinji62 avatar shinji62 commented on July 30, 2024

Not supported right now.
I will work on that.
Thanks

from firehose-to-syslog.

shinji62 avatar shinji62 commented on July 30, 2024

Well the fact is this required two change, one in firehose-to-sylog for firehose connection

firehose --> proxy --> firehose-to-syslog

And inside go-cfclient

api,uaa --> proxy --> firehose-to-syslog

Btw your proxy should be websocket capable...

from firehose-to-syslog.

mrbuk avatar mrbuk commented on July 30, 2024

Maybe I am getting something wrong but I think this should work out of the box when setting HTTP_PROXY and HTTPS_PROXY e.g. via

export HTTPS_PROXY=http://localhost:8888
export HTTP_PROXY=http://localhost:8888

before running firehose-to-syslog. noaa and gorilla/websocket are honoring those settings.

Exporting the two mentioned variables and running firehose-to-syslog with tinyproxy I see the

  • Events coming through firehose
  • tinyproxy saying it established a connection to doppler (see below)
INFO      Jul 09 20:19:29 [29935]: Initializing tinyproxy ...
INFO      Jul 09 20:19:29 [29935]: Reloading config file
INFO      Jul 09 20:19:29 [29935]: Setting "Via" header to 'tinyproxy'
WARNING   Jul 09 20:19:29 [29935]: Not running as root, so not changing UID/GID.
INFO      Jul 09 20:19:29 [29935]: Creating child number 1 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 2 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 3 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 4 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 5 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 6 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 7 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 8 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 9 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Creating child number 10 of 10 ...
INFO      Jul 09 20:19:29 [29935]: Finished creating all children.
INFO      Jul 09 20:19:29 [29935]: Setting the various signals.
INFO      Jul 09 20:19:29 [29935]: Starting main loop. Accepting connections.
CONNECT   Jul 09 20:19:35 [29936]: Connect (file descriptor 10): localhost [127.0.0.1]
CONNECT   Jul 09 20:19:35 [29936]: Request (file descriptor 10): CONNECT doppler.xxx:443 HTTP/1.1
INFO      Jul 09 20:19:35 [29936]: No upstream proxy for doppler.xxx
CONNECT   Jul 09 20:19:35 [29936]: Established connection to host "doppler.xxx" using file descriptor 11.
INFO      Jul 09 20:19:35 [29936]: Not sending client headers to remote machine

I have tested on OSX with firehose-to-syslog 1.3.1, 1.6.0 and current develop branch (1.7.1+)

from firehose-to-syslog.

shinji62 avatar shinji62 commented on July 30, 2024

@mrbuk Websocker is fine.

Does your CF api is behind a proxy too ?
Currently the nozzle connect to websocket and your api which can be http / https.

from firehose-to-syslog.

mrbuk avatar mrbuk commented on July 30, 2024

@shinji62 You are right. My API was also accessible without the proxy. So it seems that the Proxy config is missing in https://github.com/cloudfoundry-community/go-cfclient/blob/master/client.go#L97, right?

from firehose-to-syslog.

shinji62 avatar shinji62 commented on July 30, 2024

Yes :) so now you understand my comment ...
I will made a PR pretty soon to go-cfclient

from firehose-to-syslog.

shinji62 avatar shinji62 commented on July 30, 2024

Sorry, still need some work.
the GO-cfclient change a lot and I need some time to test the new one.

from firehose-to-syslog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.