Skip to content

Commit 323cf80

Browse files
committed
fix nginx user setting
1 parent dd52630 commit 323cf80

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pip3 install -r requirements.txt
2222

2323
- __then run onl-frontent__
2424

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)
2626

2727
- run nginx using local configuration
2828

nginx.conf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# user onl;
1+
user root;
22

33
# Set number of worker processes automatically based on number of CPU cores.
44
worker_processes auto;
@@ -26,7 +26,7 @@ http {
2626
# indicated by the request header Content-Length. If the stated content
2727
# length is greater than this size, then the client receives the HTTP
2828
# error code 413. Set to 0 to disable.
29-
client_max_body_size 5m;
29+
client_max_body_size 100m;
3030

3131
# Timeout for keep-alive connections. Server will close connections after
3232
# this time.
@@ -47,10 +47,9 @@ http {
4747

4848
location / {
4949
proxy_pass http://127.0.0.1:8080;
50-
proxy_set_header Host $host;
5150
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;
5453
}
5554
}
5655
}

0 commit comments

Comments
 (0)