mirror of
https://github.com/unraid/webgui.git
synced 2026-02-07 09:29:18 -06:00
redirect http TS url to https TS url
This commit is contained in:
@@ -289,6 +289,15 @@ build_servers(){
|
||||
fi
|
||||
if [[ -n $TSFQDN ]]; then
|
||||
cat <<- EOF >>$SERVERS
|
||||
#
|
||||
# Redirect Tailscale http requests to https
|
||||
# ex: http://tower.magicDNS.ts.net -> https://tower.magicDNS.ts.net
|
||||
#
|
||||
server {
|
||||
$(listen $PORT)
|
||||
server_name $TSFQDN;
|
||||
return 302 https://$TSFQDN$PORTSSL_URL$request_uri;
|
||||
}
|
||||
#
|
||||
# Port settings for https using Tailscale cert
|
||||
# ex: https://tower.magicDNS.ts.net
|
||||
|
||||
Reference in New Issue
Block a user