Skip to content

Commit 9d07cd1

Browse files
committed
fix: nginx tunnel example configs
1 parent 1c09313 commit 9d07cd1

5 files changed

Lines changed: 18 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
ports:
77
# Server port
88
- 80:80/tcp
9+
- 9032:9032/udp
910
image: jacobtread/pocket-relay:latest
1011
volumes:
1112
# Bind the server config to a local config.json file

examples/nginx-tunnel/config.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"logging": "debug",
23
"port": 80,
3-
"reverse_proxy": true
4+
"reverse_proxy": true,
5+
"udp_tunnel": {
6+
"port": 9032,
7+
"external_port": 8081
8+
}
49
}

examples/nginx-tunnel/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
version: "3"
22
services:
3+
pocket-relay:
4+
restart: unless-stopped
5+
image: jacobtread/pocket-relay:latest
6+
volumes:
7+
# Bind the server config to a local config.json file
8+
- ./config.json:/app/config.json
9+
# Binding the server data to a local data folder
10+
- ./data:/app/data
311
nginx:
412
restart: unless-stopped
513
image: nginx

examples/nginx-tunnel/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ http {
77
server_name localhost;
88

99
location / {
10-
proxy_pass http://host.docker.internal:80;
10+
proxy_pass http://pocket-relay:80;
1111

1212
# Provide server with real IP address of clients
1313
proxy_set_header X-Real-IP $remote_addr;
@@ -27,6 +27,6 @@ stream {
2727
# Proxy traffic to the tunnel V2 which is a faster UDP tunnel
2828
server {
2929
listen 8081 udp;
30-
proxy_pass host.docker.internal:9032;
30+
proxy_pass pocket-relay:9032;
3131
}
3232
}

examples/nginx/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"logging": "debug",
23
"port": 80,
34
"reverse_proxy": true,
45
"udp_tunnel": {

0 commit comments

Comments
 (0)