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.

20 lines
681 B

  1. server {
  2. listen 80;
  3. server_name domain;
  4. ignore_invalid_headers off;
  5. client_max_body_size 0;
  6. proxy_buffering off;
  7. location / {
  8. proxy_pass http://site_name:9000;
  9. proxy_set_header Host $host;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. # Default is HTTP/1, keepalive is only enabled in HTTP/1.1
  13. proxy_http_version 1.1;
  14. proxy_set_header Connection "";
  15. chunked_transfer_encoding off;
  16. }
  17. listen 443 ssl;
  18. ssl_certificate /etc/letsencrypt/tmp/domain/fullchain.pem;
  19. ssl_certificate_key /etc/letsencrypt/tmp/domain/privkey.pem;
  20. }