ipfs-inactive / docs

[ARCHIVED] šŸ¤– šŸ“š IPFS documentation working group, plus IPFS docs site code
https://docs.ipfs.io/
Other
87 stars 62 forks source link

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

Closed victorb closed 6 years ago

victorb commented 6 years ago

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 dokku@cloud.ipfs.team: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

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 commented 6 years ago

Moved this to ipfs/infrastructure#363