Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### PORT 80 ACTIVE
- #
- # redirect all traffic to https
- server { listen 80; server_name www.pliind.se;
- return 301
- https://$host$request_uri;
- }
- #
- #
- ### HOMEASSISTANT
- #
- server {
- listen 443 ssl;
- # root /config/www;
- # index index.html index.htm index.php;
- server_name home.pliind.se;
- include /config/nginx/ssl.conf;
- client_max_body_size 0;
- location / {
- # auth_basic "Restricted"; auth_basic_user_file
- # /config/nginx/.htpasswd;
- proxy_set_header Host $host;
- proxy_redirect http:// https://;
- proxy_http_version 1.1;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_buffering off;
- proxy_ssl_verify off;
- # include /config/nginx/proxy.conf;
- proxy_pass http://192.168.1.6:8123;
- }
- }
- include /config/nginx/proxy-confs/*.subdomain.conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement