kutt: use port 443
This commit is contained in:
parent
be669ffdce
commit
121478d4df
@ -71,4 +71,4 @@ description
|
|||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:3000 or https://<your-Kutt-domain>${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}https://${IP} or https://<your-Kutt-domain>${CL}"
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
"type": "ct",
|
"type": "ct",
|
||||||
"updateable": true,
|
"updateable": true,
|
||||||
"privileged": false,
|
"privileged": false,
|
||||||
"interface_port": 3000,
|
"interface_port": 443,
|
||||||
"documentation": "https://github.com/thedevs-network/kutt/",
|
"documentation": "https://github.com/thedevs-network/kutt/",
|
||||||
"config_path": "/etc/kutt-data/.env",
|
"config_path": "/etc/kutt-data/.env",
|
||||||
"website": "https://kutt.it",
|
"website": "https://kutt.it",
|
||||||
@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
"notes": [
|
"notes": [
|
||||||
{
|
{
|
||||||
"text": "Kutt needs so be served with an SSL certificate for its login to work. During install, you will be prompted to choose if you want to have Caddy installed for SSL termination, or if you want to use your own reverse proxy. You can also skip SSL termination during install and configure it later.",
|
"text": "Kutt needs so be served with an SSL certificate for its login to work. During install, you will be prompted to choose if you want to have Caddy installed for SSL termination or if you want to use your own reverse proxy (in that case point your reverse porxy to port 3000).",
|
||||||
"type": "info"
|
"type": "info"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -20,17 +20,17 @@ ssl_choice=${ssl_choice:-i}
|
|||||||
case "${ssl_choice,,}" in
|
case "${ssl_choice,,}" in
|
||||||
i)
|
i)
|
||||||
import_local_ip
|
import_local_ip
|
||||||
DEFAULT_HOST="$LOCAL_IP:3000"
|
DEFAULT_HOST="$LOCAL_IP:443"
|
||||||
|
|
||||||
msg_info "Confiuring Caddy"
|
msg_info "Confiuring Caddy"
|
||||||
$STD apt install -y caddy
|
$STD apt install -y caddy
|
||||||
cat <<EOF >/etc/caddy/Caddyfile
|
cat <<EOF >/etc/caddy/Caddyfile
|
||||||
:3000 {
|
:443 {
|
||||||
reverse_proxy localhost:3000
|
reverse_proxy localhost:3000
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
systemctl restart caddy
|
systemctl restart caddy
|
||||||
msg_ok "Installed Caddy"
|
msg_ok "Configured Caddy"
|
||||||
;;
|
;;
|
||||||
e)
|
e)
|
||||||
read -r -p "${TAB3}Enter the hostname you want to use for Kutt (eg. kutt.example.com)" custom_host
|
read -r -p "${TAB3}Enter the hostname you want to use for Kutt (eg. kutt.example.com)" custom_host
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user