Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/configs/nginx-proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server {

proxy_read_timeout 1d;
proxy_send_timeout 1d;
client_max_body_size 0; # disable checking

root /var/www/html;
index index.html index.htm index.nginx-debian.html;
Expand Down
8 changes: 7 additions & 1 deletion ietf/api/views_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ def post(self, request):
doc_rev=rfc.rev, # expect None, but match whatever it is
mtime=mtime,
)
shutil.move(ftm, self._fs_destination(ftm))
destination = self._fs_destination(ftm)
if (
settings.SERVER_MODE != "production"
and not destination.parent.exists()
):
destination.parent.mkdir()
shutil.move(ftm, destination)

return Response(NotificationAckSerializer().data)
Loading