blob: b2b18c40cddbc933e16f7a8701c838b01972865f (
plain) (
blame)
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
|
server {
server_name voice.slowcord.understars.dev;
client_max_body_size 50M;
add_header Last-Modified $date_gmt;
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
location / {
proxy_pass http://127.0.0.1:3004;
}
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/voice.slowcord.understars.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/voice.slowcord.understars.dev/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
server {
if ($host = voice.slowcord.understars.dev) {
return 301 https://$host$request_uri;
}
listen 80;
server_name voice.slowcord.understars.dev;
return 404;
}
|