-
Notifications
You must be signed in to change notification settings - Fork 1
/
vpn-proxy.conf
52 lines (52 loc) · 1.47 KB
/
vpn-proxy.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# access to containers inside the VPN
server {
listen unix:/comm/rtorrent_ui.sock; # for access by containers outside the VPN
location / {
proxy_pass http://localhost:8080;
}
}
server {
listen unix:/comm/rtorrent_rpc.sock; # for access by containers outside the VPN
location / {
proxy_pass http://localhost:8000;
}
}
server {
listen unix:/comm/prowlarr.sock; # for access by containers outside the VPN
location / {
proxy_pass http://localhost:9696;
}
}
# access to containers outside the VPN
server {
listen 127.0.0.1:7878; # for access by containers inside the VPN
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
location / {
proxy_pass http://unix:/comm/radarr.sock;
}
}
server {
listen 127.0.0.1:8686; # for access by containers inside the VPN
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
location / {
proxy_pass http://unix:/comm/lidarr.sock;
}
}
server {
listen 127.0.0.1:8989; # for access by containers inside the VPN
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
location / {
proxy_pass http://unix:/comm/sonarr.sock;
}
}
server {
listen 127.0.0.1:8787; # for access by containers inside the VPN
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
location / {
proxy_pass http://unix:/comm/readarr.sock;
}
}