viyi commited on
Commit
600ab8f
·
verified ·
1 Parent(s): df31ba2

Upload sdwui-start-util.dev.ipynb

Browse files
Files changed (1) hide show
  1. sdwui-start-util.dev.ipynb +13 -10
sdwui-start-util.dev.ipynb CHANGED
@@ -1065,20 +1065,22 @@
1065
  " location '''+ subPath +'''\n",
1066
  " {\n",
1067
  " proxy_pass '''+ localServer +''';\n",
1068
- "\n",
1069
- " proxy_set_header Host $host:$server_port;\n",
 
1070
  " proxy_set_header X-Real-IP $remote_addr;\n",
 
1071
  " proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n",
 
 
 
1072
  " proxy_set_header REMOTE-HOST $remote_addr;\n",
1073
- " add_header X-Cache $upstream_cache_status;\n",
1074
- " proxy_set_header X-Host $host:$server_port;\n",
1075
- " proxy_set_header X-Scheme $scheme;\n",
1076
  " proxy_connect_timeout 3000s;\n",
1077
- " proxy_read_timeout 86400s;\n",
1078
  " proxy_send_timeout 3000s;\n",
 
1079
  " proxy_http_version 1.1;\n",
1080
  " proxy_set_header Upgrade $http_upgrade;\n",
1081
- " proxy_set_header Connection \"upgrade\";\n",
1082
  " }\n",
1083
  " \n",
1084
  " '''\n",
@@ -1090,12 +1092,13 @@
1090
  " listen [::]:'''+str(_server_port)+''';\n",
1091
  " server_name 127.0.0.1 localhost 0.0.0.0 \"\";\n",
1092
  " \n",
 
 
 
 
1093
  " if ($request_method = OPTIONS) {\n",
1094
  " return 200;\n",
1095
  " }\n",
1096
- " fastcgi_send_timeout 10m;\n",
1097
- " fastcgi_read_timeout 10m;\n",
1098
- " fastcgi_connect_timeout 10m;\n",
1099
  " \n",
1100
  " '''+ ''.join([getProxyLocation(key,_proxy_path[key]) for key in sorted(_proxy_path.keys(), key=len)[::-1]]) +'''\n",
1101
  "}\n",
 
1065
  " location '''+ subPath +'''\n",
1066
  " {\n",
1067
  " proxy_pass '''+ localServer +''';\n",
1068
+ " \n",
1069
+ " client_max_body_size 1000m;\n",
1070
+ " proxy_set_header Host $http_host;\n",
1071
  " proxy_set_header X-Real-IP $remote_addr;\n",
1072
+ " proxy_set_header X-Real-Port $remote_port;\n",
1073
  " proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n",
1074
+ " proxy_set_header X-Forwarded-Proto $scheme;\n",
1075
+ " proxy_set_header X-Forwarded-Host $host;\n",
1076
+ " proxy_set_header X-Forwarded-Port $server_port;\n",
1077
  " proxy_set_header REMOTE-HOST $remote_addr;\n",
 
 
 
1078
  " proxy_connect_timeout 3000s;\n",
 
1079
  " proxy_send_timeout 3000s;\n",
1080
+ " proxy_read_timeout 3000s;\n",
1081
  " proxy_http_version 1.1;\n",
1082
  " proxy_set_header Upgrade $http_upgrade;\n",
1083
+ " proxy_set_header Connection $connection_upgrade;\n",
1084
  " }\n",
1085
  " \n",
1086
  " '''\n",
 
1092
  " listen [::]:'''+str(_server_port)+''';\n",
1093
  " server_name 127.0.0.1 localhost 0.0.0.0 \"\";\n",
1094
  " \n",
1095
+ " fastcgi_send_timeout 3000s;\n",
1096
+ " fastcgi_read_timeout 3000s;\n",
1097
+ " fastcgi_connect_timeout 3000s;\n",
1098
+ " \n",
1099
  " if ($request_method = OPTIONS) {\n",
1100
  " return 200;\n",
1101
  " }\n",
 
 
 
1102
  " \n",
1103
  " '''+ ''.join([getProxyLocation(key,_proxy_path[key]) for key in sorted(_proxy_path.keys(), key=len)[::-1]]) +'''\n",
1104
  "}\n",