You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/running_bookwyrm/install-prod-dockerless.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ This install method assumes you already have ssl configured with certificates av
14
14
- Get a domain name and set up DNS for your server. You'll need to point the nameservers of your domain on your DNS provider to the server where you'll be hosting BookWyrm. Here are instructions for [DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-nameservers-from-common-domain-registrars)
15
15
- Set your server up with appropriate firewalls for running a web application (this instruction set is tested against Ubuntu 20.04). Here are instructions for [DigitalOcean](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04)
16
16
- Set up an email service (such as [Mailgun](https://documentation.mailgun.com/en/latest/quickstart.html)) and the appropriate SMTP/DNS settings. Use the service's documentation for configuring your DNS
17
-
- Install dependencies. On debian this could look like `apt install postgresql redis nginx python3-venv python3-pip python3-dev libpq-dev gunicorn`
17
+
- Install dependencies. On debian this could look like `apt install postgresql redis nginx python3-venv python3-pip python3-dev libpq-dev gunicorn gettext-base`
18
18
19
19
## Install and configure BookWyrm
20
20
@@ -26,7 +26,7 @@ Instructions for running BookWyrm in production without Docker:
26
26
`mkdir /opt/bookwyrm && cd /opt/bookwyrm`
27
27
- Get the application code, note that this only clones the `production` branch:
28
28
`git clone https://github.com/bookwyrm-social/bookwyrm.git --branch production --single-branch ./`
29
-
- Create your environment variables file, `cp .env.example .env`, and update the following. Passwords should generally be enclosed in "quotation marks":
29
+
- Create your environment variables file, `cp .env.example .env`, and update the following. Passwords should generally be enclosed in "quotation marks". You can use `bw-dev create_secrets` to generate passwords in `.env`-file:
30
30
-`SECRET_KEY` | A difficult to guess, secret string of characters.
31
31
-`DOMAIN` | Your web domain
32
32
-`POSTGRES_PASSWORD` | Set a secure password for the database
@@ -45,17 +45,19 @@ mkdir /var/cache/nginx
45
45
chown www-data:www-data /var/cache/nginx
46
46
```
47
47
- Configure nginx
48
-
- Copy the server_config to nginx's conf.d: `cp nginx/server_config /etc/nginx/conf.d/server_config`
49
-
- Make a copy of the production template config and set it for use in nginx: `cp nginx/production /etc/nginx/sites-available/bookwyrm.conf`
50
-
- Update nginx `bookwyrm.conf`:
51
-
- Replace `your-domain.com` with your domain name everywhere in the file (including the lines that are currently commented out)
48
+
- Copy the server_config to nginx's conf.d: `cp nginx/locations /etc/nginx/conf.d/locations`
49
+
- Update nginx `/etc/nginx/conf.d/locations`:
52
50
- Replace `/app` with your install directory `/opt/bookwyrm` everywhere in the file (including commented out)
53
-
- Uncomment [lines 23 to 111](https://github.com/bookwyrm-social/bookwyrm/blob/production/nginx/production#L23-L111) to enable
54
-
forwarding to HTTPS. You should have two `server` blocks enabled
55
-
- Change the `ssl_certificate` and `ssl_certificate_key` paths to your fullchain and privkey locations
56
-
- Change [line 4](https://github.com/chdorner/secretbearlibrary/blob/main/bookwyrm/bookwyrm-nginx.conf#L4) so that it says
57
-
`server localhost:8000`. You may choose a different port here if you wish
58
-
- If you are running another web-server on your host machine, you will need to follow the [reverse-proxy instructions](/reverse-proxy.html)
51
+
- Make a copy of the production template config and set it for use in nginx:
52
+
- Set env-variables for DOMAIN and MAX_UPLOAD_MiB so envsubst can populate nginx templates. For example `export DOMAIN=your-web-domain MAX_UPLOAD_MiB=100`
0 commit comments