default.conf 1004 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. #charset koi8-r;
  5. access_log /var/log/nginx/host.access.log main;
  6. gzip on;
  7. gzip_min_length 1k;
  8. gzip_buffers 4 16k;
  9. gzip_comp_level 8;
  10. 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;
  11. gzip_vary off;
  12. gzip_disable "MSIE [1-6]\.";
  13. location / {
  14. root /usr/share/nginx/html;
  15. index start.html index.html;
  16. }
  17. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  18. #
  19. location /api {
  20. proxy_pass http://pdms-oss-api:8082;
  21. }
  22. location /download {
  23. proxy_pass http://pdms-oss-api:8082;
  24. }
  25. location /file {
  26. proxy_pass http://pdms-oss-api:8082;
  27. }
  28. location /swagger-ui.html {
  29. proxy_pass http://pdms-oss-api:8082;
  30. }
  31. location /webjars {
  32. proxy_pass http://pdms-oss-api:8082;
  33. }
  34. }