rubykube / microkube

Minimal stack for deploying peatio (open source crypto-currencies trading exchange platform) on a virtual machine
https://www.openware.com
Apache License 2.0
35 stars 83 forks source link

Can not login after `rake service:all` #98

Closed mengzyou closed 5 years ago

mengzyou commented 5 years ago

Issue Description

Follow the READEM, deploy the all services via rake service:all, but can not login on www.<domain> with the default seeds user/password, it reports error message Oups! Error occurs, please try again later.

image

Version

0.1.19

lsethi commented 5 years ago

Check Browser console logs. May be you have not setup ssl correctly

mengzyou commented 5 years ago

@lsethi Yes, you are correct, it reports:

xhr.js:173 Mixed Content: The page at 'https://www.<domain>/login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.<domain>/api/v2/barong/identity/sessions'. This request has been blocked; the content must be served over HTTPS.

But, how can I setup ssl correctly?

lsethi-xoriant commented 5 years ago

@mengzyou You need to edit following config files and https instead of http. microkube/config/frontend/env.js microkube/config/frontend/tower.js window.env = { API_URL: 'https://www.<domain> };

mengzyou commented 5 years ago

@lsethi-xoriant Thank you! I tried to edit those 2 files, but after I executed rake service:all[start] it will re-render those 2 files, so finally I changed files under microkube/templates/config/frontend/, it works.