Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
KnowledgePlanet
road-map
xfg-dev-tech-higress
提交
8fe04e84
xfg-dev-tech-higress
项目概览
KnowledgePlanet
/
road-map
/
xfg-dev-tech-higress
通知
20
Star
14
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
xfg-dev-tech-higress
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
8fe04e84
编写于
4月 21, 2024
作者:
小傅哥
⛹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: init project add nginx config
上级
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
236 addition
and
0 deletion
+236
-0
.gitignore
.gitignore
+39
-0
docs/dev-ops/nginx-docker-compose.yml
docs/dev-ops/nginx-docker-compose.yml
+27
-0
docs/dev-ops/nginx01/conf/conf.d/default.conf
docs/dev-ops/nginx01/conf/conf.d/default.conf
+23
-0
docs/dev-ops/nginx01/conf/nginx.conf
docs/dev-ops/nginx01/conf/nginx.conf
+31
-0
docs/dev-ops/nginx01/html/api/index.html
docs/dev-ops/nginx01/html/api/index.html
+11
-0
docs/dev-ops/nginx01/html/index.html
docs/dev-ops/nginx01/html/index.html
+11
-0
docs/dev-ops/nginx02/conf/conf.d/default.conf
docs/dev-ops/nginx02/conf/conf.d/default.conf
+23
-0
docs/dev-ops/nginx02/conf/nginx.conf
docs/dev-ops/nginx02/conf/nginx.conf
+31
-0
docs/dev-ops/nginx02/html/api/index.html
docs/dev-ops/nginx02/html/api/index.html
+11
-0
docs/dev-ops/nginx02/html/index.html
docs/dev-ops/nginx02/html/index.html
+11
-0
pom.xml
pom.xml
+18
-0
未找到文件。
.gitignore
0 → 100644
浏览文件 @
8fe04e84
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
\ No newline at end of file
docs/dev-ops/nginx-docker-compose.yml
0 → 100644
浏览文件 @
8fe04e84
# 命令执行 docker-compose -f nginx-docker-compose.yml up -d
version
:
'
3.9'
services
:
nginx_01
:
image
:
nginx:1.25.3
container_name
:
nginx_01
restart
:
always
ports
:
-
'
8090:80'
volumes
:
-
./nginx01/html:/usr/share/nginx/html
-
./nginx01/conf/nginx.conf:/etc/nginx/nginx.conf
-
./nginx01/conf/conf.d:/etc/nginx/conf.d
privileged
:
true
nginx_02
:
image
:
nginx:1.25.3
container_name
:
nginx_02
restart
:
always
ports
:
-
'
8091:80'
volumes
:
-
./nginx02/html:/usr/share/nginx/html
-
./nginx02/conf/nginx.conf:/etc/nginx/nginx.conf
-
./nginx02/conf/conf.d:/etc/nginx/conf.d
privileged
:
true
\ No newline at end of file
docs/dev-ops/nginx01/conf/conf.d/default.conf
0 → 100644
浏览文件 @
8fe04e84
server
{
listen
80
;
listen
[::]:
80
;
location
/ {
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
;
}
location
/
api
{
# 假设你想要显示的 HTML 文件名为 api.html
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
;
# try_files $uri $uri/ /api.html; # 尝试访问 /api.html
}
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
html
;
}
}
\ No newline at end of file
docs/dev-ops/nginx01/conf/nginx.conf
0 → 100644
浏览文件 @
8fe04e84
user
nginx
;
worker_processes
auto
;
error_log
/var/log/nginx/error.log
notice
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
sendfile
on
;
#tcp_nopush on;
keepalive_timeout
65
;
#gzip on;
include
/etc/nginx/conf.d/*.conf
;
}
docs/dev-ops/nginx01/html/api/index.html
0 → 100644
浏览文件 @
8fe04e84
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
小傅哥
</title>
</head>
<body>
HI XFG!01
</body>
</html>
\ No newline at end of file
docs/dev-ops/nginx01/html/index.html
0 → 100644
浏览文件 @
8fe04e84
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
小傅哥
</title>
</head>
<body>
HI XFG!
</body>
</html>
\ No newline at end of file
docs/dev-ops/nginx02/conf/conf.d/default.conf
0 → 100644
浏览文件 @
8fe04e84
server
{
listen
80
;
listen
[::]:
80
;
location
/ {
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
;
}
location
/
api
{
# 假设你想要显示的 HTML 文件名为 api.html
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
;
# try_files $uri $uri/ /api.html; # 尝试访问 /api.html
}
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
html
;
}
}
\ No newline at end of file
docs/dev-ops/nginx02/conf/nginx.conf
0 → 100644
浏览文件 @
8fe04e84
user
nginx
;
worker_processes
auto
;
error_log
/var/log/nginx/error.log
notice
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
sendfile
on
;
#tcp_nopush on;
keepalive_timeout
65
;
#gzip on;
include
/etc/nginx/conf.d/*.conf
;
}
docs/dev-ops/nginx02/html/api/index.html
0 → 100644
浏览文件 @
8fe04e84
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
小傅哥
</title>
</head>
<body>
HI XFG!02
</body>
</html>
\ No newline at end of file
docs/dev-ops/nginx02/html/index.html
0 → 100644
浏览文件 @
8fe04e84
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
小傅哥
</title>
</head>
<body>
HI XFG!
</body>
</html>
\ No newline at end of file
pom.xml
0 → 100644
浏览文件 @
8fe04e84
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.example
</groupId>
<artifactId>
xfg-dev-tech-higress
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
</project>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录