mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-03-20 22:27:42 +08:00
### What problem does this PR solve? 1. Refactor go server log 2. Update docker building, since nginx config should be set according to the deployment. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
35 lines
794 B
Plaintext
35 lines
794 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /ragflow/web/dist;
|
|
|
|
gzip on;
|
|
gzip_min_length 1k;
|
|
gzip_comp_level 9;
|
|
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
|
|
gzip_vary on;
|
|
gzip_disable "MSIE [1-6]\.";
|
|
|
|
location ~ ^/api/v1/admin {
|
|
proxy_pass http://localhost:9381;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location ~ ^/(v1|api) {
|
|
proxy_pass http://localhost:9380;
|
|
include proxy.conf;
|
|
}
|
|
|
|
|
|
location / {
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Cache-Control: max-age Expires
|
|
location ~ ^/static/(css|js|media)/ {
|
|
expires 10y;
|
|
access_log off;
|
|
}
|
|
}
|