From 6b6b8ec7ffd08387f5aed5a5c7e12678002238f1 Mon Sep 17 00:00:00 2001 From: Jerome Luckenbach Date: Thu, 10 Dec 2020 22:03:32 +0100 Subject: [PATCH] Update security.md (#1302) Moved to a new PR at main branch, to prevent merge conflicts. Reference: https://github.com/openhab/openhab-docs/pull/1259 by @amil109 Signed-off-by: Jerome Luckenbach --- installation/security.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installation/security.md b/installation/security.md index 78c078f73..bb7c642cd 100644 --- a/installation/security.md +++ b/installation/security.md @@ -533,14 +533,14 @@ sudo nano /usr/local/etc/nginx/sites-enabled/openHAB-auth server { listen 2020; #This is simply an unused port, it can be any number - server_name dow-family-adsl.ddns.net; - + server_name your_domain.com; + return 301 https://$server_name$request_uri; } server { listen 7443 ssl; #This is simply an unused port, it can be any number - server_name dow-family-adsl.ddns.net; + server_name your_domain.com; location / { proxy_pass https://localhost:8443/; #Update the port number if needed