joshua29
joshua29

Reputation: 97

How to deploy revel framework(Go lang) using nginx

I like to ask, how can i deploy my revel framework app using nginx in different linten port, for example port 8089. Thank you

Upvotes: 0

Views: 1080

Answers (1)

abalos
abalos

Reputation: 1361

Based on your question, I assume you are trying to reverse proxy from nginx to your revel framework application. Essentially using proxy pass forwards HTTP request headers from one port/application to another. This allows you to use your web application directly.

If this is the case, you'll need to do the following:

  • Start the app on some port (say 8089)
  • Configure Nginx to handle reverse proxy web connections from port 80 / 443 to that port.
  • Navigate to the URL specified by the Nginx proxy pass configuration.

This link from Nginx should be helpful in setting up the proxy pass.

If this is not what you are trying to achieve, let me know and I'll try to help out some more!

Upvotes: 1

Related Questions