-
Notifications
You must be signed in to change notification settings - Fork 33
Add document "How to set up an application proxy in Nginx?" #408
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
base: master
Are you sure you want to change the base?
Add document "How to set up an application proxy in Nginx?" #408
Conversation
|
|
||
| Create a new vhost and set its type to `proxy`. In the example below we create a vhost for `proxy.myapp.hypernode.io`: | ||
|
|
||
| ```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing some inconsistency with other docs:
- In these examples, use console over bash (because there's a prompt)
- Use
exampleinstead ofmyapp
| Open `public.proxy.conf`. The only lines you normally need to change are at the top: the upstream host and port your application listens on. By default they point to `localhost:3000`. | ||
|
|
||
| ```nginx | ||
| app@abc123-app-magweb-cmbl:~/nginx/proxy.myapp.hypernode.io$ cat public.proxy.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to just refer to the filename in text, then have a proper syntax highlighting on the nginx config (without the bash prompt etc)
| This command creates a vhost directory under `/data/web/nginx/<your-domain>/` with the proxy templates. You will see the following files: | ||
|
|
||
| ```console | ||
| app@abc123-myapp-magweb-cmbl:~/nginx/proxy.myapp.hypernode.io$ ls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another inconsistent prompt
No description provided.