fix(amber-web): 修正nginx配置和应用版本更新
部署叶服务器的nginx配置文件中包含了必要的服务器配置,以确保正确地监听HTTP和HTTPS流量,并且定义了错误页面的位置。同时,更新了manifest.yaml中应用的镜像版本,以包含修复和新配置。
This commit is contained in:
parent
83c09c9f10
commit
5ed878b49a
@ -1,6 +1,7 @@
|
||||
FROM nginx:1.27.0-alpine
|
||||
|
||||
COPY dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
@ -17,7 +17,7 @@ spec:
|
||||
- name: leaf
|
||||
containers:
|
||||
- name: amber
|
||||
image: registry.leafdev.top/leaf/amber-web:v0.0.1
|
||||
image: registry.leafdev.top/leaf/amber-web:v0.0.1-fix-2
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
14
nginx.conf
Normal file
14
nginx.conf
Normal file
@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user