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.

32 lines
1.1 KiB

  1. server {
  2. listen 80;
  3. server_name domain;
  4. location / {
  5. proxy_pass http://site_name:8080;
  6. access_log off;
  7. proxy_set_header Host $http_host;
  8. proxy_set_header X-Real-IP $remote_addr;
  9. proxy_set_header X-Forwarded-Host $http_host;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. proxy_set_header X-Forwarded-Proto https;
  12. client_max_body_size 60m;
  13. proxy_http_version 1.1;
  14. }
  15. location /api/eventSourceBus {
  16. proxy_pass http://site_name:8080;
  17. access_log off;
  18. proxy_cache off;
  19. proxy_buffering off;
  20. proxy_read_timeout 86400s;
  21. proxy_send_timeout 86400s;
  22. proxy_set_header Connection '';
  23. chunked_transfer_encoding off;
  24. proxy_set_header X-Forwarded-Host $http_host;
  25. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  26. proxy_set_header X-Forwarded-Proto $scheme;
  27. proxy_http_version 1.1;
  28. }
  29. listen 443 ssl;
  30. ssl_certificate /etc/letsencrypt/tmp/domain/fullchain.pem;
  31. ssl_certificate_key /etc/letsencrypt/tmp/domain/privkey.pem;
  32. }