File size: 1,301 Bytes
95d8484 5d5ac8d 95d8484 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp_path;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
include mime.types;
# default_type application/octet-stream;
sendfile on;
server_tokens off;
client_max_body_size 3000m;
server {
listen 7860 default_server;
# listen $PORT default_server;
location / {
root /usr/local/html;
index index.html index.htm;
}
location /home {
return 200 "Welcome to my website!";
}
location /login {
proxy_redirect off;
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $server_name;
# error_page 400=200 "Bad request is OK!";
# error_page 404=200 "Bad request is OK!";
}
location /healthCheck {
return 200 "OK!";
}
}
}
|