server {
	listen 80;
	server_name **** ЗАМЕНИТЬ client.domain.name****;
	root /var/www/spherebyte/dist;
	index index.html;

	location / {
		try_files $uri /index.html =404;
	}



	location ~* \.json$ {
		expires 30s;
		add_header "Cache-Control" "no-store, no-cache";
	}
}

server {
    server_name **** ЗАМЕНИТЬ main.domain.name****;
    listen 80;
	
	error_log /var/log/dotnet-log/main.byte.sphere.org_error.log;
	access_log /var/log/dotnet-log/main.byte.sphere.org_access.log;

	location / {
		proxy_pass http://localhost:5010;
	}
	
	location /s {
		return 200 'server name: main.byte.sphere.org';
		add_header Content-type text/plain; #dont save to file, but show in browser
	}
}


server {
    server_name **** ЗАМЕНИТЬ file.domain.name****;
    listen 80;
	
	error_log /var/log/dotnet-log/file.byte.sphere.org_error.log;
	access_log /var/log/dotnet-log/file.byte.sphere.org_access.log;		

	location / {
		proxy_pass http://localhost:5020;
	}
	
	location /s {
		return 200 'server name: file.byte.sphere.org';
		add_header Content-type text/plain; #dont save to file, but show in browser
	}
}
