]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: add `--ssl` to `ng serve` 38973/head
authorTatjana Dehler <tdehler@suse.com>
Tue, 12 Jan 2021 09:28:35 +0000 (10:28 +0100)
committerAvan Thakkar <athakkar@localhost.localdomain>
Tue, 19 Jan 2021 19:29:53 +0000 (00:59 +0530)
Add the `--ssl` option to the `ng serve` command in order to
reflect the changes to the cookies (https://tracker.ceph.com/issues/44591)
and be able to log into the dashboard by using the development server.

Fixes: https://tracker.ceph.com/issues/48847
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 3971cdb0a64c077c9d136135b745778d875e0dae)

 Conflicts:
src/pybind/mgr/dashboard/frontend/package.json
     - Adopted master branch changes.

src/pybind/mgr/dashboard/frontend/package.json

index 6d32c44353a599157320ed0f310cbbf063b1af3f..75c9949270c1540de33d5f839f91f642cf167be3 100644 (file)
@@ -7,7 +7,7 @@
   },
   "scripts": {
     "ng": "ng",
-    "start": "npm run env_build && ng serve --host 0.0.0.0",
+    "start": "npm run env_build && ng serve --host 0.0.0.0 --ssl",
     "build": "export _locale=${LOCALE:-$npm_package_config_locale}; if [ ${_locale} = $npm_package_config_locale ]; then export _file=; else export _file=src/locale/messages.${_locale}.xlf; fi; ng build --outputPath=dist/${_locale} --i18nFile=${_file} --i18nLocale=${_locale}",
     "prebuild": "npm run env_build",
     "build:cs": "LOCALE=cs npm run build",