First of all let me say that when it comes to nginx and proxies I am a complete n00b. I am trying to setup a reverse proxy with SSL for a subdomain. I have no idea how to configure it. I have a cert for mydomain.com and mysubdomain.domain.com. I am using Hassio v.0.59.2 and have installed NGINX Home Assistant SSL proxy.
My end result is targeted toward this.
server {
# general server parameters listen 443; server_name mysubdomain.domain.com; access_log /var/log/nginx/mysubdomain.domain.com.access.log; # SSL configuration ssl on; ssl_certificate /ssl/fullchain.pem; ssl_certificate_key /ssl/privkey.pem; ssl_session_cache builtin:1000 shared:SSL:10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4; ssl_prefer_server_ciphers on; location /tablelamps/ { # header pass through configuration proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # extra debug headers add_header X-Forwarded-For $proxy_add_x_forwarded_for; # actual proxying configuration proxy_ssl_session_reuse on; proxy_pass http://tablelamps.local/; proxy_redirect default; #proxy_redirect ^/(.*)$ /tablelamps/$1; proxy_read_timeout 90; }
}
Any and all help is appreciated. I apologize if I have posted this in the inappropriate catagory.