Fix nginx conf

This commit is contained in:
2026-02-03 03:05:25 +04:00
parent 5daba004ea
commit 79f259f496
4 changed files with 5 additions and 13 deletions

4
.env
View File

@@ -1,6 +1,6 @@
# GitHub OAuth # GitHub OAuth
#OAUTH_GITHUB_CLIENT_ID= OAUTH_GITHUB_CLIENT_ID=Ov23liZlaqw1ituoKC9G
#OAUTH_GITHUB_CLIENT_SECRET= OAUTH_GITHUB_CLIENT_SECRET=8eb25db83fa97f5c16e8fedc753dc4f64fc1a9b5
# Decap CMS # Decap CMS
PUBLIC_DECAP_CMS_SRC_URL=https://unpkg.com/decap-cms@^3.3.3/dist/decap-cms.js PUBLIC_DECAP_CMS_SRC_URL=https://unpkg.com/decap-cms@^3.3.3/dist/decap-cms.js

View File

@@ -4,21 +4,13 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
# Gzip compression location ~ ^([^.\?]*[^/])$ {
gzip on; return 301 $1/;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
} }
# Main location
location / { location / {
try_files $uri $uri/ $uri.html /index.html; try_files $uri $uri/ $uri.html /index.html;
} }
# Error pages
error_page 404 /404.html; error_page 404 /404.html;
} }

Binary file not shown.

View File

@@ -51,7 +51,7 @@ let currentTime = $state(0);
// 歌曲总时长 // 歌曲总时长
let duration = $state(0); let duration = $state(0);
// 音量 // 音量
let volume = $state(0.75); let volume = $state(0.5);
// 是否静音 // 是否静音
let isMuted = $state(false); let isMuted = $state(false);
// 是否正在加载 // 是否正在加载