Переглянути джерело

allowing dev server to run https (self signed)
The reason is WebXR, which doesn't work unless ssl is turned on.

Raanan Weber 5 роки тому
батько
коміт
5f586af5b4
2 змінених файлів з 6 додано та 1 видалено
  1. 2 1
      Tools/Gulp/package.json
  2. 4 0
      Tools/Gulp/tasks/gulpTasks-localRun.js

+ 2 - 1
Tools/Gulp/package.json

@@ -11,6 +11,7 @@
     "scripts": {
         "install": "cd ../../ && npm install && cd Playground/ && npm install && cd ../Viewer && npm install && cd ../Tools/Gulp/",
         "build": "gulp --max-old-space-size=8192 --tsLintFix",
-        "start": "gulp run --max-old-space-size=8192"
+        "start": "gulp run --max-old-space-size=8192",
+        "start-public-ssl": "gulp run --max-old-space-size=8192 --public --ssl"
     }
 }

+ 4 - 0
Tools/Gulp/tasks/gulpTasks-localRun.js

@@ -44,5 +44,9 @@ gulp.task("webserver", function() {
         options.host = "0.0.0.0";
     }
 
+    if (commandLineOptions.ssl) {
+        options.https = true;
+    }
+
     connect.server(options);
 });