mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-06-20 18:05:39 +02:00
38 lines
No EOL
1.1 KiB
Nginx Configuration File
38 lines
No EOL
1.1 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
sendfile on;
|
|
default_type application/octet-stream;
|
|
|
|
gzip on;
|
|
gzip_http_version 1.1;
|
|
gzip_disable "MSIE [1-6]\.";
|
|
gzip_min_length 256;
|
|
gzip_vary on;
|
|
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;
|
|
gzip_comp_level 9;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html =404;
|
|
}
|
|
location /api {
|
|
proxy_pass http://host.docker.internal:8181;
|
|
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $realip_remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
}
|
|
location /api/frontver {
|
|
add_header Cache-Control 'no-store';
|
|
add_header Cache-Control 'no-cache';
|
|
expires 0;
|
|
index version.json;
|
|
alias /usr/share/nginx/html;
|
|
}
|
|
} |