Skip to content

Instantly share code, notes, and snippets.

View yash3492's full-sized avatar

Sandeep Patel yash3492

  • India
View GitHub Profile
@yash3492
yash3492 / ngnix-reverse-proxy.conf
Last active March 14, 2019 11:25 — forked from RyanCopley/gist:b25c15f87092acba9269
Reverse proxy to multiple local server of same codebase
upstream appserver {
server localhost:8000;
server localhost:8001;
server localhost:8002;
server localhost:8003;
server localhost:8004;
}
server {
listen 80;
function write_ws_xml_datavalidation(validations) {
var o = '<dataValidations>';
for(var i=0; i < validations.length; i++) {
var validation = validations[i];
o += '<dataValidation type="list" allowBlank="1" sqref="' + validation.sqref + '">';
o += '<formula1>&quot;' + validation.values + '&quot;</formula1>';
o += '</dataValidation>';
}
o += '</dataValidations>';
return o;