-
Notifications
You must be signed in to change notification settings - Fork 1
/
aggregator-proxy.conf
80 lines (78 loc) · 2.58 KB
/
aggregator-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# for the homepage
server {
server_name _;
listen 80; # for access by humans
listen [::]:80; # for access by humans
}
map $http_origin $allowed_origins {
"http://downloadsquad" "http://downloadsquad";
"http://downloadsquad." "http://downloadsquad."; # for windows compatibility
# "http://downloadsquad.:81" "http://downloadsquad.:81"; # for a different port
default "";
}
add_header 'Access-Control-Allow-Origin' $allowed_origins always;
add_header 'Vary' 'Origin' always;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
# access to containers outside the VPN
server {
listen 80; # for access by humans
listen [::]:80; # for access by humans
listen unix:/comm/radarr.sock; # for access by containers inside the VPN
server_name radarr.downloadsquad;
location / {
proxy_pass http://localhost:7878;
}
}
server {
listen 80; # for access by humans
listen [::]:80; # for access by humans
listen unix:/comm/lidarr.sock; # for access by containers inside the VPN
server_name lidarr.downloadsquad;
location / {
proxy_pass http://localhost:8686;
}
}
server {
listen 80; # for access by humans
listen [::]:80; # for access by humans
listen unix:/comm/sonarr.sock; # for access by containers inside the VPN
server_name sonarr.downloadsquad;
location / {
proxy_pass http://localhost:8989;
}
}
server {
listen 80; # for access by humans
listen [::]:80; # for access by humans
listen unix:/comm/readarr.sock; # for access by containers inside VPN
server_name readarr.downloadsquad;
location / {
proxy_pass http://localhost:8787;
}
}
# access to containers inside the VPN
server {
listen 80; # for access by humans
listen [::]:80; # for access by humans
server_name rtorrent.downloadsquad;
location / {
proxy_pass http://unix:/comm/rtorrent_ui.sock;
}
}
server {
listen 80; # for access by humans
listen [::]:80; # for access by humans
listen 127.0.0.1:9696; # for access by containers outside the VPN
server_name prowlarr.downloadsquad;
location / {
proxy_pass http://unix:/comm/prowlarr.sock;
}
}
server {
listen 127.0.0.1:8000; # for access by containers outside the VPN
server_name rtorrent.downloadsquad;
location / {
proxy_pass http://unix:/comm/rtorrent_rpc.sock;
}
}