diff --git a/.env b/.env index 76ea9d4..4441f9c 100644 --- a/.env +++ b/.env @@ -1,6 +1,6 @@ # GitHub OAuth -#OAUTH_GITHUB_CLIENT_ID= -#OAUTH_GITHUB_CLIENT_SECRET= +OAUTH_GITHUB_CLIENT_ID=Ov23liZlaqw1ituoKC9G +OAUTH_GITHUB_CLIENT_SECRET=8eb25db83fa97f5c16e8fedc753dc4f64fc1a9b5 # Decap CMS PUBLIC_DECAP_CMS_SRC_URL=https://unpkg.com/decap-cms@^3.3.3/dist/decap-cms.js diff --git a/nginx.conf b/nginx.conf index b524baa..877de56 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,21 +4,13 @@ server { root /usr/share/nginx/html; index index.html; - # Gzip compression - gzip on; - 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"; + location ~ ^([^.\?]*[^/])$ { + return 301 $1/; } - # Main location location / { try_files $uri $uri/ $uri.html /index.html; } - # Error pages error_page 404 /404.html; } diff --git a/public/assets/music/Simon Swerwer - Galena (FLAC).mp3 b/public/assets/music/Simon Swerwer - Galena (FLAC).mp3 new file mode 100644 index 0000000..8a5c1fe Binary files /dev/null and b/public/assets/music/Simon Swerwer - Galena (FLAC).mp3 differ diff --git a/src/components/musicPlayer.svelte b/src/components/musicPlayer.svelte index 03016e1..b1b58d1 100644 --- a/src/components/musicPlayer.svelte +++ b/src/components/musicPlayer.svelte @@ -51,7 +51,7 @@ let currentTime = $state(0); // 歌曲总时长 let duration = $state(0); // 音量 -let volume = $state(0.75); +let volume = $state(0.5); // 是否静音 let isMuted = $state(false); // 是否正在加载