summary refs log tree commit diff
path: root/src-slowcord/nginx/voice
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 18:24:21 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 23:35:18 +1000
commitf44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 (patch)
treea6655c41bb3db79c30fd876b06ee60fe9cf70c9b /src-slowcord/nginx/voice
parentAllow edited_timestamp to passthrough in handleMessage (diff)
downloadserver-f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052.tar.xz
Refactor to mono-repo + upgrade packages
Diffstat (limited to 'src-slowcord/nginx/voice')
-rw-r--r--src-slowcord/nginx/voice35
1 files changed, 35 insertions, 0 deletions
diff --git a/src-slowcord/nginx/voice b/src-slowcord/nginx/voice
new file mode 100644

index 00000000..b2b18c40 --- /dev/null +++ b/src-slowcord/nginx/voice
@@ -0,0 +1,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; +} \ No newline at end of file