server {
        listen 80;
        listen [::]:80;
	listen 443 ssl http2;

	if ($scheme != "https")
	{
		return 301 https://$host$request_uri;
	}

	root /var/www/r7-office/r7draw;
	index index.html;

	server_name draw.{domain};
	server_tokens off;

	ssl_protocols TLSv1.2 TLSv1.3;
	ssl_certificate /etc/nginx/ssl/{domain}.crt;
	ssl_certificate_key /etc/nginx/ssl/{domain}.key;
	ssl_ciphers HIGH:!aNULL:!MD5;

	location / {
	    proxy_pass http://localhost:3005;
	}
}
