test
This commit is contained in:
parent
2faab0f775
commit
17b8956565
@ -7,7 +7,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/
|
|||||||
|
|
||||||
APP="notesnook"
|
APP="notesnook"
|
||||||
var_tags="${var_tags:-os}"
|
var_tags="${var_tags:-os}"
|
||||||
var_cpu="${var_cpu:-1}"
|
var_cpu="${var_cpu:-2}"
|
||||||
var_ram="${var_ram:-3072}"
|
var_ram="${var_ram:-3072}"
|
||||||
var_disk="${var_disk:-8}"
|
var_disk="${var_disk:-8}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
|
@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y make
|
$STD apt-get install -y make git
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_MODULE="yarn" install_node_and_modules
|
NODE_MODULE="yarn" install_node_and_modules
|
||||||
@ -23,6 +23,8 @@ msg_info "Installing Notesnook (Patience)"
|
|||||||
fetch_and_deploy_gh_release "streetwriters/notesnook"
|
fetch_and_deploy_gh_release "streetwriters/notesnook"
|
||||||
cd /opt/notesnook
|
cd /opt/notesnook
|
||||||
export NODE_OPTIONS="--max-old-space-size=2560"
|
export NODE_OPTIONS="--max-old-space-size=2560"
|
||||||
|
mkdir -p certs
|
||||||
|
$STD openssl req -x509 -newkey rsa:4096 -keyout certs/key.pem -out certs/cert.pem -days 365 -nodes -subj "/CN=localhost"
|
||||||
$STD npm install
|
$STD npm install
|
||||||
$STD npm run build:web
|
$STD npm run build:web
|
||||||
msg_ok "Installed Notesnook"
|
msg_ok "Installed Notesnook"
|
||||||
@ -37,7 +39,9 @@ After=network-online.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/notesnook
|
WorkingDirectory=/opt/notesnook
|
||||||
ExecStart=/usr/bin/npx serve apps/web/build
|
ExecStart=/usr/bin/npx serve -l tcp://0.0.0.0:3000 apps/web/build \\
|
||||||
|
--ssl-cert certs/cert.pem \\
|
||||||
|
--ssl-key certs/key.pem
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
@ -46,6 +50,7 @@ EOF
|
|||||||
systemctl enable -q --now notesnook
|
systemctl enable -q --now notesnook
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user