Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .env.example

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.19
20
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
services:
services:
home:
image: yingxiaomo/home:latest
container_name: clean-home
Expand Down Expand Up @@ -30,9 +30,9 @@
environment:
# 仅更新本项目相关的容器(通过容器名过滤,或者不填则更新全部)
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=600
- WATCHTOWER_POLL_INTERVAL=300
# 也可以指定只监控特定的容器
command: --interval 600 clean-home
command: --interval 300 clean-home

networks:
home-network:
Expand Down
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
Expand All @@ -21,9 +21,10 @@
<link rel="apple-touch-icon" href="/icon/apple-touch-icon.png" />
<link rel="bookmark" href="/icon/favicon.ico" />

<!-- 预加载字体 -->
<link rel="preload" href="/font/Pacifico-Regular.ttf" as="font" type="font/ttf" crossorigin>
<link rel="preload" href="/font/UnidreamLED.ttf" as="font" type="font/ttf" crossorigin>

<script src="https://cdnjs.cloudflare.com/ajax/libs/color-thief/2.3.0/color-thief.umd.js"></script>

<style>
body {
Expand Down Expand Up @@ -75,4 +76,4 @@
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
</html>
7 changes: 3 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
server {
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html index.htm;
charset utf-8;

# 开启 gzip_static,直接利用 vite 生成的 .gz 文件,减少 CPU 消耗
# 开启 gzip_static,直接使用 vite 生成的 .gz 文件,减少 CPU 消耗
gzip_static on;

# 开启普通 gzip (针对未预压缩的文件)
Expand All @@ -30,4 +29,4 @@
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
Loading
Loading