Advertisement
Guest User

Untitled

a guest
May 24th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. #### PORT 80 ACTIVE
  2. #
  3. # redirect all traffic to https
  4. server { listen 80; server_name www.pliind.se;
  5. return 301
  6. https://$host$request_uri;
  7. }
  8. #
  9. #
  10. ### HOMEASSISTANT
  11. #
  12. server {
  13. listen 443 ssl;
  14. # root /config/www;
  15. # index index.html index.htm index.php;
  16. server_name home.pliind.se;
  17.  
  18. include /config/nginx/ssl.conf;
  19.  
  20. client_max_body_size 0;
  21.  
  22. location / {
  23. # auth_basic "Restricted"; auth_basic_user_file
  24. # /config/nginx/.htpasswd;
  25. proxy_set_header Host $host;
  26. proxy_redirect http:// https://;
  27. proxy_http_version 1.1;
  28. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  29. proxy_set_header Upgrade $http_upgrade;
  30. proxy_set_header Connection "upgrade";
  31. proxy_buffering off;
  32. proxy_ssl_verify off;
  33. # include /config/nginx/proxy.conf;
  34. proxy_pass http://192.168.1.6:8123;
  35. }
  36. }
  37. include /config/nginx/proxy-confs/*.subdomain.conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement