labkey.conf.off 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. upstream xlabkey{
  2. server labkey-web:8080;
  3. }
  4. #HTTP -> redirect
  5. #server {
  6. # listen 80;
  7. # listen [::]:80;
  8. # server_name merlin.fmf.uni-lj.si;
  9. # return 301 https://$host$request_uri;
  10. #}
  11. #HTTPS
  12. server {
  13. listen 443 ssl;
  14. listen [::]:443 ssl;
  15. server_name localhost;
  16. charset utf-8;
  17. keepalive_timeout 5;
  18. #SSL
  19. ssl_certificate /var/www/localhostBundle.crt;
  20. ssl_certificate_key /var/www/localhost.key;
  21. ssl_session_timeout 1d;
  22. ssl_session_cache shared:SSL:50m;
  23. ssl_session_tickets off;
  24. ssl_verify_client on;
  25. ssl_client_certificate /var/www/NIXLJU-CA_chain.crt;
  26. #Hardening
  27. # Accepted protocols and ciphers
  28. #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  29. ssl_protocols TLSv1.2;
  30. ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
  31. ssl_prefer_server_ciphers on;
  32. add_header Strict-Transport-Security "max-age=15768000"; # 6 months
  33. error_page 500 502 503 504 /50x.html;
  34. location = /50x.html {
  35. root /usr/share/nginx/html;
  36. }
  37. # location /{
  38. # root /var/www/landing;
  39. # }
  40. location /{
  41. proxy_pass http://labkey-web:8080/;
  42. # proxy_redirect http://labkey-web:8080/ https://merlin.fmf.uni-lj.si/;
  43. # proxy_redirect https://xlabkey/ https://merlin.fmf.uni-lj.si/;
  44. # proxy_set_header Host $proxy_host;
  45. # proxy_set_header X-Real-IP $remote_addr;
  46. # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  47. # proxy_set_header X-Forwarded-Proto $scheme;
  48. #client_max_body_size 0;
  49. }
  50. #
  51. }