added https
All checks were successful
/ deploy-to-homesrv01 (push) Successful in 16s

This commit is contained in:
2025-06-02 00:33:19 +01:00
parent 9f6312d40b
commit 077be73b69
5 changed files with 52 additions and 50 deletions

View File

@@ -4,8 +4,20 @@ map $http_upgrade $connection_upgrade {
}
server {
listen 80 default_server;
proxy_buffering off;
listen 80;
server_name casa.limbosolutions.com *.casa.limbosolutions.com;
return 301 https://has.casa.limbosolutions.com$request_uri;
}
server {
listen 443 ssl;
ssl_certificate /etc/ssl/tls.crt;
ssl_certificate_key /etc/ssl/tls.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://homeassistant-app:80;
proxy_set_header Host $host;
@@ -15,7 +27,6 @@ server {
proxy_set_header Connection $connection_upgrade;
}
}