-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Getting dashboard to run through https #429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
generate self signed certificate
try the following
|
the --allowInsecureHttp flag allows you to tell parse-dashboard that it should allow running un HTTP. This is generally used when you're serving it behind a reverse proxy for ex:
It's usually recommended to use a reverse proxy in the front of your node processes and let that proxy handle HTTPS termination. You should not in any case let HTTP traffic go to your node process if you're running with --allowInsecureHttp |
@flovilmart perhaps you intended to comment on this issue instead? |
@diego-vieira Is that a separate script that I run, or is that a preexisting script that I need to edit? Also, Thanks. |
@BrandenSandahl ah I thought that you were using express to run your dashboard. |
@diego-vieira Can I just install express and have express run it or will that interfere with my parse server that is running? |
@BrandenSandahl then, yes you can run your dashboard on one server and your parse server in another server for instance or both on the same server as long as you run on two different ports if you're running them separately. I have no experience with DigitalOcean but this should get you going.
If I'm not clear enough, please do let me know. |
@BrandenSandahl What I did was to place parse dashboard behind an nginx server. I configured the nginx to use https security using letsencrypt certificates and redirected it to parse-dashboard using local http. |
@drorsun |
@BrandenSandahl - I tried to write here more or less what I did. I edited a company doc into this short version so it may have some holes. General Create a server Update name and DNS
Update packages Install nodejs
Setup nginx
Clone letsencrypt Generate certificate
Additional security
Update nginx configuration according to the source - https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04
This will try to renew the certificate every Saturday, 2:30-35 Edit nginx configuration to pass to 4040
Add “proxy_pass” to nginx configuration
Later when you need to update parse use Edit dashboard.cfg.js with dashboard configuration of your apps and users Monitor the process with pm2
|
@drorsun Oh hey also, in your dashboard config file, what does your serverURL path look like? Something like this? |
@BrandenSandahl |
I'm a little unclear on if it's possible to remotely access the dashboard through https or not when parse is running stand-alone on a server? Whenever I see the question asked I seem to see people suggesting adding the allowInsecureHTTP option.
I can make that work but since everything else is running through https I would prefer the dashboard to as well. Is there some setting I am missing that tells it to go ahead and look for it at https://myserver/parse instead of only seeing it at http?
background details:
I have migrated an iOS app's backend from the Parse server to a Digital Ocean server that is running Ubuntu following this guide: https://www.digitalocean.com/community/tutorials/how-to-migrate-a-parse-app-to-parse-server-on-ubuntu-14-04
Thanks
The text was updated successfully, but these errors were encountered: