initial commit
This commit is contained in:
26
front/default.conf
Normal file
26
front/default.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
index index.html;
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
|
||||
}
|
||||
|
||||
location /api {
|
||||
proxy_pass http://192.168.1.101:8080;
|
||||
}
|
||||
|
||||
# Настройка кэширования статических ресурсов
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, no-transform";
|
||||
}
|
||||
|
||||
# Включение сжатия Gzip
|
||||
gzip on;
|
||||
gzip_types text/plain application/javascript application/json application/xml;
|
||||
}
|
||||
Reference in New Issue
Block a user