test
This commit is contained in:
parent
3a0508677b
commit
c62a38a9d4
@ -36,9 +36,7 @@ function update_script() {
|
|||||||
systemctl stop nginx
|
systemctl stop nginx
|
||||||
msg_ok "Stopped ${APP} Service"
|
msg_ok "Stopped ${APP} Service"
|
||||||
|
|
||||||
msg_info "Updating ${APP} to v${RELEASE}"
|
|
||||||
fetch_and_deploy_gh_release "ots" "Luzifer/ots" "prebuild" "latest" "/opt/ots" "ots_linux_amd64.tgz"
|
fetch_and_deploy_gh_release "ots" "Luzifer/ots" "prebuild" "latest" "/opt/ots" "ots_linux_amd64.tgz"
|
||||||
msg_ok "Updated ${APP} to v${RELEASE}"
|
|
||||||
|
|
||||||
msg_info "Stopping ${APP} Service"
|
msg_info "Stopping ${APP} Service"
|
||||||
systemctl start ots
|
systemctl start ots
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "OTS",
|
|
||||||
"slug": "ots",
|
|
||||||
"categories": [
|
|
||||||
6
|
|
||||||
],
|
|
||||||
"date_created": "2025-07-28",
|
|
||||||
"type": "ct",
|
|
||||||
"updateable": true,
|
|
||||||
"privileged": false,
|
|
||||||
"interface_port": 443,
|
|
||||||
"documentation": "https://github.com/Luzifer/ots/wiki",
|
|
||||||
"config_path": "/opt/ots/env",
|
|
||||||
"website": "https://github.com/Luzifer/ots",
|
|
||||||
"logo": null,
|
|
||||||
"description": "One-Time-Secret sharing platform with a symmetric 256bit AES encryption in the browser.",
|
|
||||||
"install_methods": [
|
|
||||||
{
|
|
||||||
"type": "default",
|
|
||||||
"script": "ct/ots.sh",
|
|
||||||
"resources": {
|
|
||||||
"cpu": 1,
|
|
||||||
"ram": 512,
|
|
||||||
"hdd": 3,
|
|
||||||
"os": "Debian",
|
|
||||||
"version": "12"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default_credentials": {
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"notes": [
|
|
||||||
{
|
|
||||||
"text": "When it is in used external please use it behind reverse proxy or create your own certificates",
|
|
||||||
"type": "info"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
40
frontend/public/json/ots.json
Normal file
40
frontend/public/json/ots.json
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "OTS",
|
||||||
|
"slug": "ots",
|
||||||
|
"categories": [
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"date_created": "2025-07-28",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 443,
|
||||||
|
"documentation": "https://github.com/Luzifer/ots/wiki",
|
||||||
|
"config_path": "/opt/ots/.env",
|
||||||
|
"website": "https://github.com/Luzifer/ots",
|
||||||
|
"logo": null,
|
||||||
|
"description": "One-Time-Secret sharing platform with a symmetric 256bit AES encryption in the browser.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/ots.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 1,
|
||||||
|
"ram": 512,
|
||||||
|
"hdd": 3,
|
||||||
|
"os": "Debian",
|
||||||
|
"version": "12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": [
|
||||||
|
{
|
||||||
|
"text": "When it is in used external please use it behind reverse proxy or create your own certificates",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -20,15 +20,16 @@ $STD apt-get install -y \
|
|||||||
openssl
|
openssl
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing OTS"
|
|
||||||
fetch_and_deploy_gh_release "ots" "Luzifer/ots" "prebuild" "latest" "/opt/ots" "ots_linux_amd64.tgz"
|
fetch_and_deploy_gh_release "ots" "Luzifer/ots" "prebuild" "latest" "/opt/ots" "ots_linux_amd64.tgz"
|
||||||
cat <<EOF >/opt/ots/env
|
|
||||||
|
msg_info "Setup OTS"
|
||||||
|
cat <<EOF >/opt/ots/.env
|
||||||
LISTEN=127.0.0.1:3000
|
LISTEN=127.0.0.1:3000
|
||||||
REDIS_URL=redis://127.0.0.1:6379
|
REDIS_URL=redis://127.0.0.1:6379
|
||||||
SECRET_EXPIRY=604800
|
SECRET_EXPIRY=604800
|
||||||
STORAGE_TYPE=redis
|
STORAGE_TYPE=redis
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Installed OTS"
|
msg_ok "Setup OTS"
|
||||||
|
|
||||||
msg_info "Generating Universal SSL Certificate"
|
msg_info "Generating Universal SSL Certificate"
|
||||||
mkdir -p /etc/ssl/ots
|
mkdir -p /etc/ssl/ots
|
||||||
@ -82,7 +83,7 @@ After=network-online.target
|
|||||||
Requires=network-online.target
|
Requires=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/opt/ots/env
|
EnvironmentFile=/opt/ots/.env
|
||||||
ExecStart=/opt/ots/ots
|
ExecStart=/opt/ots/ots
|
||||||
Restart=Always
|
Restart=Always
|
||||||
RestartSecs=5
|
RestartSecs=5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user