about summary refs log tree commit diff
path: root/nanobox
diff options
context:
space:
mode:
authorDaniel Hunsaker <danhunsaker@gmail.com>2017-11-15 08:26:53 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-11-15 16:26:53 +0100
commit3e4b01b47d4b84b8970048a5a80babdcc681d5c0 (patch)
tree737e95215469be19f7f7cf6957e0ffcbc840ac56 /nanobox
parent19e8b861a2c97240e0ca9c47d13bb3d7c5cb7520 (diff)
[Nanobox] Apply Release Notes Changes (#5670)
Apparently I missed some things in earlier commits/releases that needed to be applied to the Nanobox setup. All minor things, nothing that breaks anything, but still best to get them in place.

- Move cron jobs to their own component, so the Sidekiq component can be scaled up to multiple instances without causing issues with running the same cron job multiple times at once.
- Update cron jobs to the latest requirements, removing extraneous ones
- Add new variables to `.env.nanobox`
- Update Nginx to use correct cache header directives
Diffstat (limited to 'nanobox')
-rw-r--r--nanobox/nginx-web.conf.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/nanobox/nginx-web.conf.erb b/nanobox/nginx-web.conf.erb
index 24cd17cff..a839f3036 100644
--- a/nanobox/nginx-web.conf.erb
+++ b/nanobox/nginx-web.conf.erb
@@ -42,7 +42,12 @@ http {
             try_files $uri @rails;
         }
 
-        location ~ ^/(assets|system/media_attachments/files|system/accounts/avatars) {
+        location /sw.js {
+            add_header Cache-Control "public, max-age=0";
+            try_files $uri @rails;
+        }
+
+        location ~ ^/(emoji|packs|system/media_attachments/files|system/accounts/avatars) {
             add_header Cache-Control "public, max-age=31536000, immutable";
             try_files $uri @rails;
         }