Skip to content

Commit 8057801

Browse files
authored
docs(dokku): Clarify steps to edit Nginx files + sudo
1 parent 1745f00 commit 8057801

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

docs/deployment-dokku.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,25 +127,44 @@ The two sections
127127

128128
Sidekiq's web UI will throw a 502 Gateway error out of the box on production. To fix this, [increase the nginx buffer size](https://github.com/mperham/sidekiq/issues/3143#issuecomment-248923576).
129129

130-
Create `/home/dokku/hm/nginx.conf.d/proxy_buffer.conf` with the following:
130+
1. Create `proxy_buffer.conf`
131+
```bash
132+
sudo nano /home/dokku/hm/nginx.conf.d/proxy_buffer.conf
133+
```
131134

135+
2. Copy/paste or type in these contents:
132136
```
133137
# Fix for Sidekiq web console
134138
proxy_buffer_size 128k;
135139
proxy_buffers 4 256k;
136140
proxy_busy_buffers_size 256k;
137141
```
138142

143+
3. Save the file
144+
139145
### Resumes
140146

141147
Support decently-sized resumes.
142148

143-
Create `/home/dokku/hm/nginx.conf.d/upload.conf` with the following:
149+
1. Create `upload.conf`
150+
```bash
151+
sudo nano /home/dokku/hm/nginx.conf.d/upload.conf
152+
```
144153

154+
2. Copy/paste or type in these contents:
145155
```
146156
client_max_body_size 2M;
147157
```
148158

159+
3. Save the file
160+
161+
### Restart Nginx
162+
163+
```bash
164+
dokku nginx:build-config hm
165+
```
166+
167+
149168
## MySQL
150169

151170
### MySQL Timezone Tables (Groupdate)

0 commit comments

Comments
 (0)