nginx-unleash-clients-20211130.yaml 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. user nginx;
  2. worker_processes 1;
  3. events {
  4. worker_connections 1024;
  5. }
  6. http {
  7. include /etc/nginx/mime.types;
  8. default_type application/octet-stream;
  9. gzip on;
  10. gzip_types application/xml application/json application/x-javascript text/css text/plain;
  11. gzip_proxied no-cache no-store private expired auth;
  12. server_tokens off;
  13. server {
  14. listen 80;
  15. listen [::]:80;
  16. server_name _;
  17. return 301 https://$host$request_uri;
  18. }
  19. server {
  20. listen 443 ssl http2;
  21. listen [::]:443 ssl http2;
  22. server_name _;
  23. ssl_certificate /run/secrets/titleproject.space-20211130.crt;
  24. ssl_certificate_key /run/secrets/titleproject.space-20211130.key;
  25. add_header Strict-Transport-Security "max-age=15768000" always;
  26. add_header X-Content-Type-Options nosniff;
  27. add_header X-XSS-Protection "1; mode=block";
  28. location / {
  29. proxy_pass http://unleash-proxy:3000/;
  30. }
  31. }
  32. }