mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 19:15:13 +00:00
23 lines
498 B
Nginx Configuration File
23 lines
498 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
gzip on;
|
|
gzip_min_length 1k;
|
|
gzip_buffers 4 16k;
|
|
#gzip_http_version 1.0;
|
|
gzip_comp_level 8;
|
|
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 off;
|
|
gzip_static on;
|
|
gzip_disable "MSIE [1-6].";
|
|
|
|
location /ui/ {
|
|
try_files $uri / /ui/index.html;
|
|
alias /opt/lina/;
|
|
}
|
|
|
|
location / {
|
|
rewrite ^/(.*)$ /ui/$1 last;
|
|
}
|
|
}
|