Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Deploying https on dokku (cloud.ipfs.team) #44

Closed
victorb opened this issue Nov 27, 2017 · 1 comment
Closed

Deploying https on dokku (cloud.ipfs.team) #44

victorb opened this issue Nov 27, 2017 · 1 comment

Comments

@victorb
Copy link
Contributor

victorb commented Nov 27, 2017

Not sure where to place this, so putting it here in the meantime.

Deploying your application and adding https

We have a dokku setup for deploying applications. To deploy do (you have to have permission first):

# if you already have added the remote, you don't need to do it again
> git remote add dokku [email protected]:webrtc-star-signalling
> git push dokku master

You can replace webrtc-star-signalling with whatever your applications name is. Once you push it, it'll start deploying and end with outputting the URL where it's deployed.

Adding custom domain + https

If you want to add https, you'll need to do two steps (using webrtc-star-signalling as a example). These commands needs to be run on the dokku host (currently cloud.ipfs.team)

> dokku domains:add star-signal star-signal.cloud.ipfs.team wrtc-star.discovery.libp2p.io
  • star-signal is the application name
  • star-signal.cloud.ipfs.team is the domain it's automatically deployed on when doing git push
  • wrtc-star.discovery.libp2p.io is our custom domain that we've pointed to 188.166.203.82 already (usually done via DNSimple)

Now we can get a certificate.

> dokku letsencrypt star-signal star-signal.cloud.ipfs.team wrtc-star.discovery.libp2p.io

Same structure, just change domains:add for letsencrypt basically. Once this step is done, it should output done and you should be able to access both star-signal.cloud.ipfs.team and wrtc-star.discovery.libp2p.io over https.

@ghost
Copy link

ghost commented Jan 10, 2018

Moved this to ipfs/infra#363

@ghost ghost closed this as completed Jan 10, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant