-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod-www.dnistream.live.conf
89 lines (76 loc) · 2.54 KB
/
prod-www.dnistream.live.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
81
82
83
84
85
86
87
88
89
# Web Server - Angular Portal
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name dnistream.live;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.dnistream.live/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.dnistream.live/privkey.pem;
return 301 https://www.dnistream.live$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.dnistream.live;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.dnistream.live/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.dnistream.live/privkey.pem;
set $upstream 127.0.0.1:8080;
location / {
proxy_pass_header Authorization;
proxy_pass http://$upstream;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_redirect off;
proxy_ssl_session_reuse off;
}
}
# Web Server - Web API
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name api.dnistream.live;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.dnistream.live/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.dnistream.live/privkey.pem;
set $upstream 127.0.0.1:8181;
location / {
proxy_pass_header Authorization;
proxy_pass http://$upstream;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_redirect off;
proxy_ssl_session_reuse off;
}
}
# Social redirects
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name discord.dnistream.live;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.dnistream.live/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.dnistream.live/privkey.pem;
return 302 https://discord.gg/KsCt2hx;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name youtube.dnistream.live;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.dnistream.live/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.dnistream.live/privkey.pem;
return 302 https://www.youtube.com/channel/UCvmKhmixJzc6Qe8mIqWn1pg;
}