Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Docker integrated nginx redirect #25

Open
felixlberg opened this issue May 3, 2019 · 1 comment
Open

Suggestion: Docker integrated nginx redirect #25

felixlberg opened this issue May 3, 2019 · 1 comment

Comments

@felixlberg
Copy link

felixlberg commented May 3, 2019

As far is I know docker opens huge security backdoor by opening its ports to external so I added:

...
 garie-pagespeed-insights:
    image: "garie/pagespeed-insights"
    ports:
      - 127.0.0.1:3002:3000
...

That restricts to localhost and you can easily redirect all requests and several ports with nginx:
#13

Unfortunately I have build this outside of docker but I think this idea is maybe worth considering to run this programmatically as docker nginx module.

@felixlberg
Copy link
Author

@boyney123
I've tested no around a little bit and seems working quite well if you integrate nginx and use expose: instead of ports: in docker-compose but I couldn't redirect to chronograf like that. All other garie modules seems to work, collecting with webhook as well. I added some password promt for some variables as well and fixed some links. I can make an pull request if you want...
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant