Last active
October 3, 2016 11:33
-
-
Save pioh/c993c1586feadeb0925ad8295cfe6a17 to your computer and use it in GitHub Desktop.
nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen *:80; | |
server_name baikal.srg-it.ru; | |
gzip on; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; | |
add_header Access-Control-Allow-Origin *; | |
index index.html; | |
access_log /var/log/nginx/baikal.srg-it.ru.access.log combined; | |
error_log /var/log/nginx/baikal.srg-it.ru.error.log; | |
location ~* ^\/api\/.*$ { | |
proxy_pass http://baikal.srg-it.ru:8080; | |
} | |
location / { | |
root /usr/share/nginx/html/baikal; | |
index index.html; | |
try_files $uri $uri/ /index.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment