Commits

Adam Dutko  committed b5f3527

Add nginx config.

  • Participants
  • Parent commits 5620594

Comments (0)

Files changed (1)

File site/cleveland.pm.org

+## Hypnotoad listener
+upstream clevelandpm {
+    server 127.0.0.1:8080;
+}
+
+server {
+
+	listen   80; ## listen for ipv4
+	server_name  cleveland.pm.org; 
+	access_log  /var/log/nginx/cleveland.pm.org.access.log;
+
+	location / {
+        ## Copy site to this directory and run start script
+        ## for hypnotoad.
+		#root   /var/www/cleveland.pm.org/;
+        proxy_pass http://clevelandpm;
+    	proxy_set_header Upgrade $http_upgrade;
+    	proxy_set_header Connection "upgrade";
+    	proxy_set_header Host $host;
+    	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+    	proxy_set_header X-Forwarded-HTTPS 0;
+	}
+
+}