Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
This commit is contained in:
commit
e33da3c8ad
@ -56,4 +56,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${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}${CL}"
|
||||||
|
@ -16,9 +16,11 @@ update_os
|
|||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
make \
|
make \
|
||||||
git
|
git \
|
||||||
|
caddy
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
||||||
NODE_MODULE="yarn" setup_nodejs
|
NODE_MODULE="yarn" setup_nodejs
|
||||||
fetch_and_deploy_gh_release "notesnook" "streetwriters/notesnook" "tarball"
|
fetch_and_deploy_gh_release "notesnook" "streetwriters/notesnook" "tarball"
|
||||||
|
|
||||||
@ -43,6 +45,23 @@ WorkingDirectory=/opt/notesnook
|
|||||||
ExecStart=/usr/bin/npx serve -l tcp://0.0.0.0:3000 apps/web/build
|
ExecStart=/usr/bin/npx serve -l tcp://0.0.0.0:3000 apps/web/build
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF >/etc/systemd/system/caddy.service
|
||||||
|
[Unit]
|
||||||
|
Description=Caddy Service
|
||||||
|
After=network-online.target
|
||||||
|
Requires=notesnook.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/notesnook
|
||||||
|
ExecStart=/usr/bin/caddy reverse-proxy --from https://$LOCAL_IP --to localhost:3000
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user