Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
This commit is contained in:
commit
c9cdf5d14d
@ -48,25 +48,10 @@ Restart=on-failure
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
sed -i "s|^ExecStart=.*|ExecStart=/usr/bin/caddy reverse-proxy --from https://$LOCAL_IP --to localhost:3000|" /lib/systemd/system/caddy.service
|
||||||
cat <<EOF >/etc/systemd/system/caddy.service
|
systemctl daemon-reload
|
||||||
[Unit]
|
systemctl restart caddy
|
||||||
Description=Caddy Service
|
|
||||||
After=network-online.target notesnook.service
|
|
||||||
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]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now notesnook
|
systemctl enable -q --now notesnook
|
||||||
systemctl enable -q --now caddy
|
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user