Skip to content

Commit

Permalink
fix port 443 routing
Browse files Browse the repository at this point in the history
  • Loading branch information
SiwatS committed Mar 31, 2022
1 parent 2080d2b commit 177b98f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cat /etc/letsencrypt/live/$DOMAIN_NAME/privkey.pem >> fullcert.pem &&
curl -X PUT --data-binary @fullcert.pem --unix-socket /var/run/control-unit.sock http://localhost/certificates/primary &&

#Apply SSL Partial Configuration
curl -X PUT --data-binary @/software/ssl-listener.json --unix-socket /var/run/control-unit.sock 'http://localhost/config/listeners/%2A%3A443' &&
curl -X PUT --data-binary @/software/ssl-listener.json --unix-socket /var/run/control-unit.sock 'http://localhost/config/listeners/*:443' &&

#Idle Forever (IDK why tail -f /dev/null doesn't work so using infinite loop instead.)
#If you use other base image other than minimal, tail might work.
Expand Down
8 changes: 3 additions & 5 deletions ssl-listener.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"*:443":{
"pass":"routes",
"tls":{
"certificate":"primary"
}
"pass":"routes",
"tls":{
"certificate":"primary"
}
}

0 comments on commit 177b98f

Please sign in to comment.