Skip to content

Commit 98d942c

Browse files
committed
increase body size for bigger snapshots, change snapshot meta save path
1 parent 5cf3f91 commit 98d942c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

etc/nginx/localhost.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ server {
1313
access_log /var/log/localhost.access.log;
1414
error_log /var/log/localhost.error.log error;
1515

16+
client_max_body_size 10M;
17+
1618
# root /var/services/django/static/dist/; # for production build
1719

1820
location = / {

etc/nginx/meta.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
local file_meta, err = io.open("/var/services/django/snapshot_meta/" .. ngx.var.hash ..".html", "r")
2+
local file_meta, err = io.open("/var/services/django/media/snapshot-meta/" .. ngx.var.hash ..".html", "r")
33
if file_meta then
44
local content = file_meta:read("*all")
55
return content

0 commit comments

Comments
 (0)