mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
http://www.grid.net.ru/nginx/upload.en.html The following config variables are added to universe_wsgi.ini: nginx_upload_store = Path to nginx upload store ex: = database/upload_store nginx_upload_path = URL (from root of the Galaxy server) to direct upload POSTs to ex: = /_upload The following nginx config supports such a configuration: location /_upload { upload_store /path/to/galaxy/database/upload_store; upload_pass_form_field "tool_id"; upload_pass_form_field "tool_state"; upload_pass_form_field "async_datasets"; upload_pass_form_field "^files_[0-9]+\|.*"; upload_pass_form_field "file_type"; upload_pass_form_field "dbkey"; upload_pass_form_field "runtool_btn"; upload_pass_form_field "ajax_upload"; upload_pass_form_field "upload_option"; upload_pass_form_field "library_id"; upload_pass_form_field "folder_id"; upload_pass_form_field "message"; upload_pass_form_field "roles"; upload_set_form_field "__${upload_field_name}__is_composite" "true"; upload_set_form_field "__${upload_field_name}__keys" "name path"; upload_set_form_field "${upload_field_name}_name" "$upload_file_name"; upload_set_form_field "${upload_field_name}_path" "$upload_tmp_path"; upload_pass_args on; upload_pass /_upload_done; } location /_upload_done { set $dst /tool_runner/index; if ($args ~ nginx_redir=([^&]+)) { set $dst $1; } rewrite "" $dst; }