diff --git a/install/ots-install.sh b/install/ots-install.sh index be172063..59993201 100644 --- a/install/ots-install.sh +++ b/install/ots-install.sh @@ -40,6 +40,12 @@ msg_ok "Certificate Generated" msg_info "Setting up nginx" cat </etc/nginx/sites-available/ots.conf +server { + listen 80; + listen [::]:80; + server_name ots; + return 301 https://$host$request_uri; +} server { listen 443 ssl; listen [::]:443 ssl;