You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
663 B
24 lines
663 B
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
absolute_redirect off;
|
|
|
|
# gzip config
|
|
gzip on;
|
|
gzip_min_length 1k;
|
|
gzip_comp_level 9;
|
|
gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
|
|
gzip_vary on;
|
|
gzip_disable "MSIE [1-6]\.";
|
|
|
|
root /usr/share/nginx/html;
|
|
include /etc/nginx/mime.types;
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
location /api {
|
|
proxy_pass https://proapi.azurewebsites.net;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|
|
|