Skip to content

Commit b0874e8

Browse files
Override the configuration upon boot
We were previously appending to the file, so we ended up with repeated declarations - which made nginx error
1 parent 2771b2a commit b0874e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/runit-nginx-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
if [ -n "$NGINX_RAILS__client_max_body_size" ]
44
then
5-
echo "client_max_body_size $NGINX_RAILS__client_max_body_size;" >> /etc/nginx/conf.d/nginx_rails_runtime.conf
5+
echo "client_max_body_size $NGINX_RAILS__client_max_body_size;" > /etc/nginx/conf.d/nginx_rails_runtime.conf
66
fi
77

88
/usr/sbin/nginx -g 'daemon off;'

0 commit comments

Comments
 (0)