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

[Question] support for FastCGI protocol #673

Closed
hiromaily opened this issue Aug 4, 2016 · 3 comments
Closed

[Question] support for FastCGI protocol #673

hiromaily opened this issue Aug 4, 2016 · 3 comments

Comments

@hiromaily
Copy link

Now, I'm using Nginx as proxy.
And I want to use fast-cgi mode using fcgi package.
fcgi

As far as I know, fcgi has been not supported on gin.
Is there plan to adjust it?

Thanks.

Harry.

@robvdl
Copy link

robvdl commented Aug 4, 2016

Why? it's known to be much slower to use fcgi rather than just proxy to your go app

@hiromaily
Copy link
Author

Thank you, I didn't know that.
Now I'm just checking how gin integrates with Nginx.
Instead of using Nginx, what is the best way to prepare reverse proxy?

@robvdl
Copy link

robvdl commented Aug 4, 2016

Plenty of info on this on Google, but something along these lines

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:3000;
}

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

3 participants