mirror of
https://github.com/QYG2297248353/appstore-dpanel
synced 2025-12-29 08:01:36 +08:00
Synced apps from source repository via GitHub Actions
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# 数据持久化路径 [必填]
|
||||
SUPER_PRODUCTIVITY_ROOT_PATH=/home/super-productivity
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8080
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
address: 0.0.0.0
|
||||
port: 80
|
||||
|
||||
prefix: /
|
||||
permissions: CRUD
|
||||
|
||||
users:
|
||||
- username: alice
|
||||
password: alicepassword
|
||||
directory: /data/alice
|
||||
- username: bob
|
||||
password: bobpassword
|
||||
directory: /data/bob
|
||||
@@ -0,0 +1,17 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/super-productivity"
|
||||
edit: true
|
||||
envKey: SUPER_PRODUCTIVITY_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -0,0 +1,31 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
sp-webdav:
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
image: hacdias/webdav:latest
|
||||
networks:
|
||||
- 1panel-network
|
||||
restart: always
|
||||
volumes:
|
||||
- ${SUPER_PRODUCTIVITY_ROOT_PATH}/config/webdav.yaml:/config.yml
|
||||
- ${SUPER_PRODUCTIVITY_ROOT_PATH}/data:/data
|
||||
super-productivity:
|
||||
container_name: super-productivity
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- WEBDAV_BACKEND=http://sp-webdav
|
||||
image: johannesjo/super-productivity:v14.2.4
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:80
|
||||
restart: always
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
mkdir -p "$SUPER_PRODUCTIVITY_ROOT_PATH"
|
||||
mkdir -p "$SUPER_PRODUCTIVITY_ROOT_PATH/data"
|
||||
mkdir -p "$SUPER_PRODUCTIVITY_ROOT_PATH/config"
|
||||
|
||||
cp ./conf/webdav.yaml "$SUPER_PRODUCTIVITY_ROOT_PATH/config/webdav.yaml"
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
mkdir -p "$SUPER_PRODUCTIVITY_ROOT_PATH"
|
||||
mkdir -p "$SUPER_PRODUCTIVITY_ROOT_PATH/data"
|
||||
mkdir -p "$SUPER_PRODUCTIVITY_ROOT_PATH/config"
|
||||
|
||||
if [ ! -f "$SUPER_PRODUCTIVITY_ROOT_PATH/app/glance.yml" ]; then
|
||||
cp ./conf/webdav.yaml "$SUPER_PRODUCTIVITY_ROOT_PATH/config/webdav.yaml"
|
||||
fi
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user