File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pip3 install -r requirements.txt
22
22
23
23
- __ then run onl-frontent__
24
24
25
- for more details check [ https://github.com/OpenNetLab/OpenNetLab-Edu-Controller ] ( onl-fe )
25
+ for more details check [ onl-fe ] ( https://github.com/OpenNetLab/OpenNetLab-Edu-FE )
26
26
27
27
- run nginx using local configuration
28
28
Original file line number Diff line number Diff line change 1
- # user onl ;
1
+ user root ;
2
2
3
3
# Set number of worker processes automatically based on number of CPU cores.
4
4
worker_processes auto;
26
26
# indicated by the request header Content-Length. If the stated content
27
27
# length is greater than this size, then the client receives the HTTP
28
28
# error code 413. Set to 0 to disable.
29
- client_max_body_size 5m ;
29
+ client_max_body_size 100m ;
30
30
31
31
# Timeout for keep-alive connections. Server will close connections after
32
32
# this time.
@@ -47,10 +47,9 @@ http {
47
47
48
48
location / {
49
49
proxy_pass http://127.0.0.1:8080;
50
- proxy_set_header Host $host ;
51
50
proxy_set_header X-Real-IP $remote_addr ;
52
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
53
- proxy_set_header X-Forwarded-Proto $scheme ;
51
+ proxy_set_header Host $http_host ;
52
+ client_max_body_size 200M ;
54
53
}
55
54
}
56
55
}
You can’t perform that action at this time.
0 commit comments