Kayıtlar

Ocak 26, 2015 tarihine ait yayınlar gösteriliyor

Digital Ocean bulutunda nginx ile nodejs sunuculara reverse proxy ve cache load olayına girmek

Resim
Nginx Load Balancer and Reverse Proxy for Node.js Applications On Digital Ocean Joe McCann Digitial Ocean  is rad. A modern VPS with SSD servers for super cheap. Easy to spin up or down. Cloning and backing up images are a breeze and they have a solid, easy to use API with a great support team. I recently moved a bunch of my static sites to one machine on Digital Ocean. They are all sites powered by  Express  via  Node.js . However, I wanted to put Nginx in front of them to act as a reverse proxy so I could have one machine serve up many websites. This was very simple to do and within an hour I had 7 sites up and running on one machine being handled by Nginx in front of all of them as the reverse proxy. However, to make these sites highly available, I needed to reconfigure my infrastructure a bit. I ended up needing not one, but three total machines. Machine 1 with Nginx installed (to act as load balancer and reverse proxy) Machine 2 with Node.js installed (to serve up the s

Asp.net RestSharp ile data post etmek

Modeli json olarak gönderdiğizde hata alıyorduk, aslında gönderilen modeli kendisi parse ediyormuş :) var data = new RootObject(); var tar = new Target(); var ntf = new Notification(); var lpl = new List<string>() { Netmera.Enum.Program.Target.ANDROID.ToString(), Netmera.Enum.Program.Target.IOS.ToString(), Netmera.Enum.Program.Target.WP.ToString()}; tar.platforms = lpl; var ttags = new List (); ttags.Add("Fenerbahce"); ttags.Add("Galatasaray"); tar.tags = ttags; //tar.customFields = null; ntf.title = "deneme rest api başlık"; ntf.notificationMsg = "deneme mesajı test edilmiştir"; ntf.richPushHtml = null; data.target = tar; data.notification = ntf;   var client = new RestClient("https://api.netmera.com/push/1.2/notification"); var reques