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