@@ -42,6 +42,7 @@ run.config:
42
42
43
43
fs_watch : true
44
44
45
+
45
46
deploy.config :
46
47
extra_steps :
47
48
- NODE_ENV=production bundle exec rake assets:precompile
@@ -60,6 +61,7 @@ deploy.config:
60
61
web.web :
61
62
- bundle exec rake db:migrate:setup
62
63
64
+
63
65
web.web :
64
66
start :
65
67
nginx : nginx -c /app/nanobox/nginx-web.conf
@@ -78,6 +80,7 @@ web.web:
78
80
data.storage :
79
81
- public/system
80
82
83
+
81
84
web.stream :
82
85
start :
83
86
nginx : nginx -c /app/nanobox/nginx-stream.conf
@@ -91,8 +94,13 @@ web.stream:
91
94
writable_dirs :
92
95
- tmp
93
96
97
+
94
98
worker.sidekiq :
95
- start : bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push -L /app/log/sidekiq.log
99
+ start :
100
+ default : bundle exec sidekiq -c 5 -q default -L /app/log/sidekiq.log
101
+ mailers : bundle exec sidekiq -c 5 -q mailers -L /app/log/sidekiq.log
102
+ pull : bundle exec sidekiq -c 5 -q pull -L /app/log/sidekiq.log
103
+ push : bundle exec sidekiq -c 5 -q push -L /app/log/sidekiq.log
96
104
97
105
writable_dirs :
98
106
- tmp
@@ -105,50 +113,78 @@ worker.sidekiq:
105
113
data.storage :
106
114
- public/system
107
115
108
- cron :
109
- - id : generate_static_gifs
110
- schedule : ' */15 * * * *'
111
- command : ' bundle exec rake mastodon:maintenance:add_static_avatars'
112
116
113
- - id : update_counter_caches
114
- schedule : ' 50 * * * *'
115
- command : ' bundle exec rake mastodon:maintenance:update_counter_caches'
117
+ worker.cron_only :
118
+ start : sleep 365d
119
+
120
+ writable_dirs :
121
+ - tmp
122
+
123
+ log_watch :
124
+ rake : ' log/production.log'
116
125
117
- # runs feeds:clear, media:clear, users:clear, and push:refresh
118
- - id : do_daily_tasks
119
- schedule : ' 00 00 * * *'
120
- command : ' bundle exec rake mastodon:daily'
126
+ network_dirs :
127
+ data.storage :
128
+ - public/system
121
129
122
- - id : clear_silenced_media
123
- schedule : ' 10 00 * * *'
124
- command : ' bundle exec rake mastodon:media:remove_silenced'
130
+ cron :
131
+ # 20:00 (8 pm), server time: send out the daily digest emails to everyone
132
+ # who opted to receive one
133
+ - id : send_digest_emails
134
+ schedule : ' 00 20 * * *'
135
+ command : ' bundle exec rake mastodon:emails:digest'
125
136
137
+ # 00:10 (ten past midnight), server time: remove local copies of remote
138
+ # users' media once they are older than a certain age (use NUM_DAYS evar to
139
+ # change this from the default of 7 days)
126
140
- id : clear_remote_media
127
- schedule : ' 20 00 * * *'
141
+ schedule : ' 10 00 * * *'
128
142
command : ' bundle exec rake mastodon:media:remove_remote'
129
143
144
+ # 00:20 (twenty past midnight), server time: remove subscriptions to remote
145
+ # users that nobody follows locally (anymore)
130
146
- id : clear_unfollowed_subs
131
- schedule : ' 30 00 * * *'
147
+ schedule : ' 20 00 * * *'
132
148
command : ' bundle exec rake mastodon:push:clear'
133
149
134
- - id : send_digest_emails
135
- schedule : ' 00 20 * * *'
136
- command : ' bundle exec rake mastodon:emails:digest'
137
-
150
+ # 00:30 (half past midnight), server time: update local copies of remote
151
+ # users' avatars to match whatever they currently have set on their profile
152
+ - id : update_remote_avatars
153
+ schedule : ' 30 00 * * *'
154
+ command : ' bundle exec rake mastodon:media:redownload_avatars'
155
+
156
+ # ###########################################################################
157
+ # This task is one you might want to enable, or might not. It keeps disk
158
+ # usage low, but makes "shadow bans" (scenarios where the user is silenced,
159
+ # but not intended to be made aware that the silencing has occurred) much
160
+ # more difficult to put in place, as users would then notice their media is
161
+ # vanishing on a regular basis. Enable it if you aren't worried about users
162
+ # knowing they've been silenced (on the instance level), and want to save
163
+ # disk space. Leave it disabled otherwise.
164
+ # ###########################################################################
165
+ # # 00:00 (midnight), server time: remove media posted by silenced users
166
+ # - id: clear_silenced_media
167
+ # schedule: '00 00 * * *'
168
+ # command: 'bundle exec rake mastodon:media:remove_silenced'
169
+
170
+ # ###########################################################################
138
171
# The following two tasks can be uncommented to automatically open and close
139
172
# registrations on a schedule. The format of 'schedule' is a standard cron
140
173
# time expression: minute hour day month day-of-week; search for "cron
141
174
# time expressions" for more info on how to set these up. The examples here
142
175
# open registration only from 8 am to 4 pm, server time.
143
- #
176
+ # ###########################################################################
177
+ # # 08:00 (8 am), server time: open registrations so new users can join
144
178
# - id: open_registrations
145
179
# schedule: '00 08 * * *'
146
180
# command: 'bundle exec rake mastodon:settings:open_registrations'
147
181
#
182
+ # # 16:00 (4 pm), server time: close registrations so new users *can't* join
148
183
# - id: close_registrations
149
184
# schedule: '00 16 * * *'
150
185
# command: 'bundle exec rake mastodon:settings:close_registrations'
151
186
187
+
152
188
data.db :
153
189
image : nanobox/postgresql:9.5
154
190
@@ -170,6 +206,7 @@ data.db:
170
206
curl -k -H "X-AUTH-TOKEN: ${WAREHOUSE_DATA_HOARDER_TOKEN}" https://${WAREHOUSE_DATA_HOARDER_HOST}:7410/blobs/${file} -X DELETE
171
207
done
172
208
209
+
173
210
data.redis :
174
211
image : nanobox/redis:3.0
175
212
@@ -189,6 +226,7 @@ data.redis:
189
226
curl -k -H "X-AUTH-TOKEN: ${WAREHOUSE_DATA_HOARDER_TOKEN}" https://${WAREHOUSE_DATA_HOARDER_HOST}:7410/blobs/${file} -X DELETE
190
227
done
191
228
229
+
192
230
data.storage :
193
231
image : nanobox/unfs:0.9
194
232
0 commit comments