Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sjyp Web
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yms
Sjyp Web
Commits
55432ec9
Commit
55432ec9
authored
9 months ago
by
yms
Browse files
Options
Downloads
Patches
Plain Diff
feat: 111
parent
61a6dfbc
No related branches found
Branches containing commit
Tags
0.0.1_082224_rc.4
Tags containing commit
No related merge requests found
Pipeline
#772
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/nginx.conf
+41
-0
41 additions, 0 deletions
config/nginx.conf
with
41 additions
and
0 deletions
config/nginx.conf
0 → 100644
+
41
−
0
View file @
55432ec9
server
{
listen
80
;
fastcgi_buffers
8
256k
;
send_timeout
60
;
gzip
on
;
gzip_min_length
1k
;
gzip_comp_level
9
;
gzip_types
text/plain
text/css
text/javascript
application/json
application/javascript
application/x-javascript
application/xml
;
gzip_vary
on
;
gzip_disable
"MSIE
[1-6]
\
."
;
# 本地测试
# root html/dist;
# 生产
root
/usr/share/nginx/html
;
location
=
/favicon.ico
{
allow
all
;
}
location
/
{
try_files
$uri
$uri
/
/index.html
;
}
location
/eventApi
{
rewrite
^/eventApi/(.*)
$
/
$1
break
;
add_header
Access-Control-Allow-Origin
*
;
add_header
Access-Control-Allow-Methods
'GET,
POST,
OPTIONS'
;
add_header
Access-Control-Allow-Headers
'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'
;
proxy_pass
http://PROXY_WEB_SERVICE
;
proxy_redirect
default
;
}
location
/api2
{
rewrite
^/api2/(.*)
$
/
$1
break
;
add_header
Access-Control-Allow-Origin
*
;
add_header
Access-Control-Allow-Methods
'GET,
POST,
OPTIONS'
;
add_header
Access-Control-Allow-Headers
'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'
;
proxy_pass
http://PROXY_WEBEVENT_SERVICE
;
proxy_redirect
default
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment