Playbooks to a new Lilik
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.

54 lines
1.4 KiB

  1. #upstream gitlab {
  2. # server unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket;
  3. # proxy_pass http://localhost:8080;
  4. #}
  5. server {
  6. listen *:80;
  7. server_name projects.lilik.it;
  8. client_max_body_size 0;
  9. #location ~* \.(git) {
  10. # proxy_read_timeout 300;
  11. # proxy_connect_timeout 300;
  12. # proxy_redirect off;
  13. # proxy_set_header X-Forwarded-Proto $scheme;
  14. # proxy_set_header Host $http_host;
  15. # proxy_set_header X-Real-IP $remote_addr;
  16. # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. # proxy_set_header X-Frame-Options SAMEORIGIN;
  18. # proxy_pass http://gitlab;
  19. # proxy_pass http://localhost:8080;
  20. #}
  21. location / {
  22. ## If you use HTTPS make sure you disable gzip compression
  23. ## to be safe against BREACH attack.
  24. ## https://github.com/gitlabhq/gitlabhq/issues/694
  25. ## Some requests take more than 30 seconds.
  26. proxy_read_timeout 3600;
  27. proxy_connect_timeout 300;
  28. proxy_redirect off;
  29. proxy_http_version 1.1;
  30. proxy_set_header Host projects.leader.lilik.it;
  31. proxy_set_header X-Forwarded-Host "";
  32. proxy_set_header X-Real-IP $remote_addr;
  33. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  34. proxy_set_header X-Forwarded-Proto http;
  35. proxy_pass http://localhost:8181;
  36. proxy_hide_header Content-Security-Policy;
  37. proxy_hide_header X-Frame-Options;
  38. }
  39. }