mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-14 06:32:36 +01:00
35 lines
956 B
Plaintext
35 lines
956 B
Plaintext
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;
|
|
} |