Guest User

Untitled

a guest
Sep 23rd, 2017
11
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4.  
  5. ssl_certificate /etc/letsencrypt/live/mydomain.com-0001/fullchain.pem;
  6. ssl_certificate_key /etc/letsencrypt/live/mydomain.com-0001/privkey.pem;
  7.  
  8. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  9.  
  10. server_name countly.mydomain.com;
  11.  
  12. index index.php index.html index.htm;
  13.  
  14. location = /i {
  15. proxy_pass http://127.0.0.1:3001;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_set_header X-Real-IP $remote_addr;
  18. }
  19.  
  20. location ^~ /i/ {
  21. proxy_pass http://127.0.0.1:3001;
  22. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23. proxy_set_header X-Real-IP $remote_addr;
  24. }
  25.  
  26. location = /o {
  27. proxy_pass http://127.0.0.1:3001;
  28. }
  29.  
  30. location ^~ /o/ {
  31. proxy_pass http://127.0.0.1:3001;
  32. }
  33.  
  34. location / {
  35. proxy_pass http://127.0.0.1:6001;
  36. proxy_set_header Host $http_host;
  37. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  38. proxy_set_header X-Real-IP $remote_addr;
  39. }
  40. }
RAW Paste Data