Skip to content
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

Edit ssl and nginx part in install.md (installing from source) #1507

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions content/en/admin/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,21 +201,18 @@ ln -s /etc/nginx/sites-available/mastodon /etc/nginx/sites-enabled/mastodon
rm /etc/nginx/sites-enabled/default
```

Then edit `/etc/nginx/sites-available/mastodon` to
Then edit `/etc/nginx/sites-available/mastodon` to

1. Replace `example.com` with your own domain name
2. Uncomment the `ssl_certificate` and `ssl_certificate_key` lines and replace the two lines with (ignore this step if you are bringing your own certificate)
1. Uncomment the `ssl_certificate` and `ssl_certificate_key` lines. If you have obtained the certificate using `certbot` as described above, replace these two lines with(ignore this step if you are bringing your own certificate)

```
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
ssl_certificate /etc/letsencrypt/live/example.com/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem
```

2. Replace `example.com` with your own domain name
3. Make any other adjustments you might need.

Un-comment the lines starting with `ssl_certificate` and `ssl_certificate_key`, updating the path with the correct domain name.

Reload nginx for the changes to take effect:
4. Reload nginx for the changes to take effect:

```bash
systemctl reload nginx
Expand All @@ -231,7 +228,7 @@ Copy the systemd service templates from the Mastodon directory:
cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/
```

If you deviated from the defaults at any point, check that the username and paths are correct:
If you deviated from the defaults at any point, check that the username and paths are correct:

```sh
$EDITOR /etc/systemd/system/mastodon-*.service
Expand Down