Skip to content

Commit

Permalink
fix nginx install (#867)
Browse files Browse the repository at this point in the history
* add missing #REDIR to nginx.conf template

Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi authored May 6, 2020
1 parent 376177a commit bd72ac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion functions/packages.bash
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ nginx_setup() {
uncomment "#SSL" /etc/nginx/sites-enabled/openhab
fi
fi
nginx -t && systemctl reload nginx.service || FAILED=true

nginx -t && systemctl restart nginx.service || FAILED=true
if [ "$FAILED" = true ]; then
whiptail --title "Operation Failed!" --msgbox "$failtext" 15 80
else
Expand Down
4 changes: 2 additions & 2 deletions includes/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#################################

## Redirection
#server {
#REDIR server {
#REDIR listen 80;
#REDIR server_name DOMAINNAME;
#REDIR return 301 https://$server_name$request_uri;
#}
#REDIR }

## Reverse Proxy to openHAB
server {
Expand Down

0 comments on commit bd72ac5

Please sign in to comment.