server {
	listen 80 default_server;
	listen [::]:80 default_server ipv6only=on;

	root /var/www/arm-s3000-soft;
	index index.html;

	expires off;
	add_header Cache-Control 'max-age=0, must-revalidate';

	location ~* \.(css|js|js\.map|png|json|svg|jpg|pdf|gif|ttf|woff|woff2|eot|ico|txt) {
		# do not show index.html instead of these file types
	}

	location / {
		try_files $uri $uri/ /index.html;
	}
	
	location /cert {
		alias /var/www/cert/;
		autoindex on;
	}

	location /wsapi/ {
		proxy_pass http://127.0.0.1:35035/;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "upgrade";
		proxy_set_header rpc-meta-host $remote_addr;
		
		proxy_read_timeout 14d;
	}

}