123456789101112131415161718192021222324252627282930313233343536373839 |
- server {
- listen 80;
- server_name localhost;
- #charset koi8-r;
- access_log /var/log/nginx/host.access.log main;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_comp_level 8;
- gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
- gzip_vary off;
- gzip_disable "MSIE [1-6]\.";
- location / {
- root /usr/share/nginx/html;
- index start.html index.html;
- }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- location /api {
- proxy_pass http://pdms-oss-api:8082;
- }
- location /download {
- proxy_pass http://pdms-oss-api:8082;
- }
- location /file {
- proxy_pass http://pdms-oss-api:8082;
- }
- location /swagger-ui.html {
- proxy_pass http://pdms-oss-api:8082;
- }
- location /webjars {
- proxy_pass http://pdms-oss-api:8082;
- }
- }
|