Quellcode durchsuchen

Implement livereload support #430

Mark Shust vor 2 Jahren
Ursprung
Commit
c5e74aaabd
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12 0
      images/nginx/1.18/conf/default.conf

+ 12 - 0
images/nginx/1.18/conf/default.conf

@@ -19,5 +19,17 @@ server {
   fastcgi_buffer_size 64k;
   fastcgi_buffers 8 128k;
 
+  location /livereload.js {
+    proxy_set_header Host $host;
+    proxy_pass http://phpfpm:35729/livereload.js;
+  }
+
+  location /livereload {
+    proxy_http_version 1.1;
+    proxy_set_header Upgrade $http_upgrade;
+    proxy_set_header Connection "Upgrade";
+    proxy_pass http://phpfpm:35729/livereload;
+  }
+
   include /var/www/html/nginx[.]conf;
 }