etl.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. server {
  2. listen 7070;
  3. #listen [::]:80;
  4. #listen 443 ssl;
  5. server_name localhost;
  6. #ssl_certificate cert/localhost.pem;
  7. #ssl_certificate_key cert/localhost.key;
  8. #ssl_session_timeout 5m;
  9. #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  10. #ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
  11. #ssl_prefer_server_ciphers on;
  12. location /{
  13. root /dockerDir/www;
  14. index index.html index.htm;
  15. }
  16. location /api/ {
  17. include proxy_params;
  18. proxy_pass http://gmetry-system:6161/;
  19. }
  20. location /xxl-job-admin/ {
  21. include proxy_params;
  22. proxy_pass http://gmetry-xxljob:6969/xxl-job-admin/;
  23. }
  24. location /etl-api/{
  25. include proxy_params;
  26. proxy_pass http://gmetry-etl:6363/;
  27. }
  28. location /uploads/{
  29. autoindex off;
  30. proxy_pass http://localhost:7000/;
  31. }
  32. }
  33. server {
  34. root /dockerDir/uploads/;
  35. listen 7000;
  36. location / {
  37. autoindex off;
  38. autoindex_exact_size on;
  39. autoindex_localtime on;
  40. add_header 'Access-Control-Allow-Origin' '*';
  41. add_header 'Access-Control-Allow-Credentials' 'true';
  42. add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
  43. add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
  44. }
  45. }