Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-04-23 06:29:57 +00:00
parent 3d8e231b00
commit ce6ff35fdc
68 changed files with 9 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
# 数据持久化路径 [必填]
GLANCE_ROOT_PATH=/home/glance
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8080
+68
View File
@@ -0,0 +1,68 @@
server:
port: 8080
assets-path: /app/assets
pages:
- name: Home
columns:
- size: small
widgets:
- type: calendar
- type: rss
limit: 10
collapse-after: 3
cache: 3h
feeds:
- url: https://ciechanow.ski/atom.xml
- url: https://www.joshwcomeau.com/rss.xml
title: Josh Comeau
- url: https://samwho.dev/rss.xml
- url: https://awesomekling.github.io/feed.xml
- url: https://ishadeed.com/feed.xml
title: Ahmad Shadeed
- type: twitch-channels
channels:
- theprimeagen
- cohhcarnage
- christitustech
- blurbs
- asmongold
- jembawls
- size: full
widgets:
- type: hacker-news
- type: videos
channels:
- UCR-DXc1voovS8nhAvccRZhg # Jeff Geerling
- UCv6J_jJa8GJqFwQNgNrMuww # ServeTheHome
- UCOk-gHyjcWZNj3Br4oxwh0A # Techno Tim
- type: reddit
subreddit: selfhosted
- size: small
widgets:
- type: weather
location: London, United Kingdom
- type: markets
markets:
- symbol: SPY
name: S&P 500
- symbol: BTC-USD
name: Bitcoin
- symbol: NVDA
name: NVIDIA
- symbol: AAPL
name: Apple
- symbol: MSFT
name: Microsoft
- symbol: GOOGL
name: Google
- symbol: AMD
name: AMD
- symbol: RDDT
name: Reddit
+17
View File
@@ -0,0 +1,17 @@
additionalProperties:
formFields:
- default: "/home/glance"
edit: true
envKey: GLANCE_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
+24
View File
@@ -0,0 +1,24 @@
networks:
1panel-network:
external: true
services:
glance:
container_name: glance
env_file:
- ./envs/global.env
- .env
environment:
- TZ=Asia/Shanghai
image: glanceapp/glance:v0.7.13
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8080
restart: always
volumes:
- ${GLANCE_ROOT_PATH}/app/glance.yml:/app/glance.yml
- ${GLANCE_ROOT_PATH}/app/assets:/app/assets
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+22
View File
@@ -0,0 +1,22 @@
#!/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 "$GLANCE_ROOT_PATH"
mkdir -p "$GLANCE_ROOT_PATH/app"
cp ./conf/glance.yml "$GLANCE_ROOT_PATH/app/glance.yml"
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+24
View File
@@ -0,0 +1,24 @@
#!/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 "$GLANCE_ROOT_PATH"
mkdir -p "$GLANCE_ROOT_PATH/app"
if [ ! -f "$GLANCE_ROOT_PATH/app/glance.yml" ]; then
cp ./conf/glance.yml "$GLANCE_ROOT_PATH/app/glance.yml"
fi
echo "Check Finish."
else
echo "Error: .env file not found."
fi