server {
        listen 80;
        listen [::]:80;
        client_max_body_size 26M;

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

        server_name projects.{domain};

	#location /source {
	#    proxy_pass http://cddisk.{domain}/source;
	#}

	location /api {
	    proxy_set_header host $host;
	    proxy_set_header X-real-ip $remote_addr;
	    proxy_set_header X-forward-for $proxy_add_x_forwarded_for;
	    proxy_set_header X-Module Projects;
	    proxy_pass http://0.0.0.0:38033/api;
	}

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