Skip to content

Commit 7cb6347

Browse files
author
Jonathan Visser
committed
Use proper syntax highlighting, omit console command for reading out nginx
1 parent d6c12a6 commit 7cb6347

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

docs/hypernode-platform/nginx/how-to-set-up-an-application-proxy-nginx.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Sometimes you want to serve an application that listens on a local port (for exa
1313

1414
Create a new vhost and set its type to `proxy`. In the example below we create a vhost for `proxy.myapp.hypernode.io`:
1515

16-
```bash
17-
app@abc123-myapp-magweb-cmbl:~$ hmv proxy.myapp.hypernode.io --type proxy
16+
```console
17+
app@abc123-example-magweb-cmbl:~$ hmv proxy.myapp.hypernode.io --type proxy
1818
INFO: Managing configs for proxy.myapp.hypernode.io
1919
INFO: No existing config for proxy.myapp.hypernode.io, starting with default options
2020
INFO: Writing HTTP config for proxy.myapp.hypernode.io
2121
```
2222

2323
This command creates a vhost directory under `/data/web/nginx/<your-domain>/` with the proxy templates. You will see the following files:
2424

25-
```bash
25+
```console
2626
app@abc123-myapp-magweb-cmbl:~/nginx/proxy.myapp.hypernode.io$ ls
2727
public.proxy.conf server.rewrites.conf staging.proxy.conf
2828
```
@@ -32,7 +32,6 @@ public.proxy.conf server.rewrites.conf staging.proxy.conf
3232
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`.
3333

3434
```nginx
35-
app@abc123-app-magweb-cmbl:~/nginx/proxy.myapp.hypernode.io$ cat public.proxy.conf
3635
set $app_proxy_host localhost;
3736
set $app_proxy_port 3000;
3837

0 commit comments

Comments
 (0)