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

Update ubuntu.md #60

Open
wants to merge 1 commit into
base: master
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
18 changes: 9 additions & 9 deletions install/ubuntu.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Install on Ubuntu 18.04 / 20.04 / 22.04 LTS
description: Complete A to Z guide to setup a fully functioning Wiki.js installation
description: Complete A to Z guide to set up a fully functioning Wiki.js installation
published: true
date: 2022-06-12T02:27:42.264Z
tags: setup, guide
Expand Down Expand Up @@ -29,7 +29,7 @@ At the end of the guide, you'll have a fully working Wiki.js instance with the f
First, let's make sure the machine is up to date.

```bash
# Fetch latest updates
# Fetch the latest updates
sudo apt -qqy update

# Install all updates automatically
Expand All @@ -47,21 +47,21 @@ sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Refresh package udpates and install Docker
# Refresh package updates and install Docker
sudo apt -qqy update
sudo apt -qqy -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' install docker-ce docker-ce-cli containerd.io docker-compose-plugin
```

## Setup Containers

```bash
# Create installation directory for Wiki.js
# Create an installation directory for Wiki.js
mkdir -p /etc/wiki

# Generate DB secret
openssl rand -base64 32 > /etc/wiki/.db-secret

# Create internal docker network
# Create an internal docker network
docker network create wikinet

# Create data volume for PostgreSQL
Expand Down Expand Up @@ -95,7 +95,7 @@ docker start wiki-update-companion

On your browser, navigate to your server IP / domain name (e.g. http://your-server-ip/ ).

> If you can't load the page, wait 5 minutes and try again. It may take a few minutes for the containers to initialize on some systems.
> If you can't load the page, wait 5 minutes and try again. The containers may take a few minutes to initialize on some systems.
{.is-info}

Complete the on-screen setup to finish your installation.
Expand Down Expand Up @@ -126,13 +126,13 @@ docker create --name=wiki -e LETSENCRYPT_DOMAIN=wiki.example.com -e LETSENCRYPT_
docker start wiki
```

7. **Wait** for the container to start and the Let's Encrypt provisioning process to complete. You can optionaly view the container logs by running the command:
7. **Wait** for the container to start and the Let's Encrypt provisioning process to complete. You can optionally view the container logs by running the command:
```
docker logs wiki
```
> The process will be completed once you see the following lines in the logs:
>
> `(LETSENCRYPT) New certifiate received successfully: [ COMPLETED ]`
> `(LETSENCRYPT) New certificate received successfully: [ COMPLETED ]`
> `HTTPS Server on port: [ 3443 ]`
> `HTTPS Server: [ RUNNING ]`
{.is-success}
Expand All @@ -141,7 +141,7 @@ docker logs wiki

## Automatic HTTP to HTTPS Redirect

By default, requests made to the HTTP port will not be redirect to HTTPS. You can enable this option using these instructions:
By default, requests made to the HTTP port will not be redirected to HTTPS. You can enable this option using these instructions:

1. Navigate to the **Administration Area** by clicking on your avatar at the top-right corner of the page.
2. From the left navigation menu, click on **SSL**.
Expand Down