File: //storage02/RYPY-Recovery/nginx/conf.d/rypyehub.com.conf
server {
client_max_body_size 102400M;
root /data/rypyehub.com;
index index.html index.htm index.nginx-debian.html;
server_name rypyehub.com www.rypyehub.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/rypyehub.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/rypyehub.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}server {
if ($host = www.rypyehub.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = rypyehub.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name rypyehub.com www.rypyehub.com;
listen 80;
return 404; # managed by Certbot
}