mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-13 00:52:55 +00:00
Updated ssl server setup (markdown)
parent
badfb8feab
commit
2282592821
@ -8,23 +8,23 @@ the following instructions detail configuring ssl termination using nginx and [l
|
|||||||
|
|
||||||
# install nginx and certbot
|
# install nginx and certbot
|
||||||
|
|
||||||
**note1**: certbot is used to acquire ssl certificates from letsencrypt.
|
`certbot` is used to acquire ssl certificates from letsencrypt. let's install it:
|
||||||
|
|
||||||
* `sudo apt-get install nginx`
|
* `sudo apt-get install nginx`
|
||||||
* `echo 'deb http://httpredir.debian.org/debian jessie-backports main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/jessie-backports.list`
|
* `echo 'deb http://httpredir.debian.org/debian jessie-backports main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/jessie-backports.list`
|
||||||
* `sudo apt-get update`
|
* `sudo apt-get update`
|
||||||
* `sudo apt-get install certbot -t jessie-backports`
|
* `sudo apt-get install certbot -t jessie-backports`
|
||||||
|
|
||||||
**note2**: ensure the host running the musikcube server can accept connections from port 443.
|
**note1**: ensure the host running the musikcube server can accept connections from port 443.
|
||||||
|
|
||||||
* `sudo certbot certonly --standalone`
|
* `sudo certbot certonly --standalone`
|
||||||
|
|
||||||
**note3**: your machine no longer needs to accept connections from port 443 once the certificates are downloaded.
|
**note2**: your machine no longer needs to accept connections from port 443 once the certificates are downloaded.
|
||||||
|
|
||||||
* `sudo chgrp www-data /etc/letsencrypt/live`
|
* `sudo chgrp www-data /etc/letsencrypt/live`
|
||||||
* `sudo chmod 750 /etc/letsencrypt/live`
|
* `sudo chmod 750 /etc/letsencrypt/live`
|
||||||
|
|
||||||
**note4**: letsencrypt will email you when your cert is about to expire. when that happens, forward port 443 to your host again, and run `sudo letsencrypt renew`. don't forget to shut down the forwarded port after it finishes!
|
**note3**: letsencrypt will email you when your cert is about to expire. when that happens, forward port 443 to your host again, and run `sudo letsencrypt renew`. don't forget to shut down the forwarded port after it finishes!
|
||||||
|
|
||||||
# configure nginx
|
# configure nginx
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user