22 lines
723 B
Nginx Configuration File
22 lines
723 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Gzip settings for better performance
|
|
gzip on;
|
|
gzip_min_length 1000;
|
|
gzip_proxied expired no-cache no-store private auth;
|
|
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
location /ftp/ {
|
|
alias /usr/share/nginx/html/ftp/;
|
|
try_files $uri $uri/ /ftp/index.html;
|
|
}
|
|
|
|
# Handle assets explicitly if needed, but the above generic rule covers it if files exist
|
|
# If the user requests /ftp/assets/..., the alias maps it to /usr/share/nginx/html/ftp/assets/...
|
|
}
|