file-receive-manage-web/nginx.conf

53 lines
1.0 KiB
Nginx Configuration File

#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8888;
server_name localhost;
gzip on;
gzip_static on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location /file-receive {
proxy_pass http://127.0.0.1:8021;
}
location /file-receive-manage-web/ {
root "D:\\work\\yuandong\\code\\base\\template\\file-receive-manage-web-web-template";
index index.html index.htm;
}
location @router {
rewrite ^.*$ /index.html last;
}
client_max_body_size 5m;
}
}