Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuzhenWang
yd-csf-front
Commits
6e15fd7c
Commit
6e15fd7c
authored
May 14, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
0b469171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
nginx.conf
+11
-0
No files found.
nginx.conf
View file @
6e15fd7c
...
...
@@ -2,6 +2,17 @@ server {
listen
6688
;
server_name
139
.224.145.34
;
# 为 .mjs 文件设置正确的 MIME 类型(解决 PDF.js worker 加载失败)
location
~
\.mjs$
{
root
/usr/share/nginx/html
;
add_header
Content-Type
application/javascript
;
# 如果需要支持跨域(可选,与你的其他配置保持一致)
add_header
'Access-Control-Allow-Origin'
'*'
;
# 缓存控制(可选)
expires
1y
;
add_header
Cache-Control
"public,
immutable"
;
}
# 处理前端静态资源(Vue应用)
location
/
{
root
/usr/share/nginx/html
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment