mirror of
https://github.com/StepanovPlaton/AboutMe.git
synced 2026-04-03 20:30:49 +04:00
Fix nginx conf
This commit is contained in:
4
.env
4
.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
|
||||
|
||||
12
nginx.conf
12
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;
|
||||
}
|
||||
|
||||
BIN
public/assets/music/Simon Swerwer - Galena (FLAC).mp3
Normal file
BIN
public/assets/music/Simon Swerwer - Galena (FLAC).mp3
Normal file
Binary file not shown.
@@ -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);
|
||||
// 是否正在加载
|
||||
|
||||
Reference in New Issue
Block a user