Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yinzhuang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuchentao
yinzhuang
Commits
28d3cf79
Commit
28d3cf79
authored
Aug 03, 2026
by
xuchentao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: enable production HTTPS and ICP footer
parent
4281dbde
Pipeline
#440
failed with stage
in 21 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
6 deletions
+44
-6
.gitlab-ci.yml
.gitlab-ci.yml
+5
-2
yinzhuang.conf
deploy/nginx/yinzhuang.conf
+29
-3
Footer.astro
src/components/Footer.astro
+8
-1
global.css
src/styles/global.css
+2
-0
No files found.
.gitlab-ci.yml
View file @
28d3cf79
...
...
@@ -16,7 +16,7 @@ variables:
PM2_BIN
:
"
/usr/bin/pm2"
PM2_HOME_DIR
:
"
/root/.pm2"
PM2_USE_SUDO
:
"
1"
PUBLIC_HOST
:
"
101.126.10.129
"
PUBLIC_HOST
:
"
www.inzung.cn
"
stages
:
-
deploy
...
...
@@ -177,7 +177,10 @@ deploy:
sudo -n /usr/bin/install -o root -g root -m 0644 "$CURRENT_DIR/deploy/nginx/yinzhuang.conf" /etc/nginx/conf.d/yinzhuang.conf
sudo -n /usr/sbin/nginx -t
sudo -n /usr/bin/systemctl reload nginx
curl --fail --silent --show-error --max-time 5 --header "Host: $PUBLIC_HOST" http://127.0.0.1/ >/dev/null
curl --fail --silent --show-error --max-time 5 \
--noproxy "*" \
--resolve "$PUBLIC_HOST:443:127.0.0.1" \
"https://$PUBLIC_HOST/" >/dev/null
echo "[deploy] 部署完成:$CURRENT_DIR"
echo "[deploy] 旧 releases 目录未被读取或清理;确认无用后请人工删除"
deploy/nginx/yinzhuang.conf
View file @
28d3cf79
# 银妆官网 Nginx 配置
# 通过服务器 IP 访问,反向代理到本机 8791 端口。
# 银妆官网正式域名:HTTP 统一跳转到 HTTPS 和 www 主域名。
server
{
listen
80
;
server_name
inzung
.
cn
www
.
inzung
.
cn
101
.
126
.
10
.
129
;
server_name
inzung
.
cn
www
.
inzung
.
cn
;
return
301
https
://
www
.
inzung
.
cn
$
request_uri
;
}
# 裸域名的 HTTPS 请求统一跳转到 www 主域名。
server
{
listen
443
ssl
http2
;
server_name
inzung
.
cn
;
ssl_certificate
/
etc
/
nginx
/
certs
/
inzung
.
cn
.
fullchain
.
pem
;
ssl_certificate_key
/
etc
/
nginx
/
certs
/
inzung
.
cn
.
certkey
.
pem
;
ssl_protocols
TLSv1
.
2
TLSv1
.
3
;
return
301
https
://
www
.
inzung
.
cn
$
request_uri
;
}
server
{
listen
443
ssl
http2
;
server_name
www
.
inzung
.
cn
;
ssl_certificate
/
etc
/
nginx
/
certs
/
inzung
.
cn
.
fullchain
.
pem
;
ssl_certificate_key
/
etc
/
nginx
/
certs
/
inzung
.
cn
.
certkey
.
pem
;
ssl_protocols
TLSv1
.
2
TLSv1
.
3
;
ssl_session_cache
shared
:
INZUNG
:
10
m
;
ssl_session_timeout
1
d
;
ssl_session_tickets
off
;
# 图片上限为 20MB,JSON 中的 Base64 数据会额外增大请求体。
client_max_body_size
28
m
;
...
...
src/components/Footer.astro
View file @
28d3cf79
...
...
@@ -13,5 +13,12 @@ import { site } from "../data/site";
<div><h2>银饰系列</h2>{site.products.map((item) => <a href={`/services/#${item.slug}`}>{item.name}</a>)}</div>
<div class="footer-contact"><h2>联系与到店</h2><a class="footer-phone" href="tel:4008113922">{site.contact.phone}</a><address>{site.contact.address}</address><a class="footer-arrow" href="/contact/">查看联系方式 <span>↗</span></a></div>
</div>
<div class="container footer-bottom"><p>© {new Date().getFullYear()} {site.brand.legalName}</p><p>网站展示价格与服务以实际门店沟通为准</p></div>
<div class="container footer-bottom">
<p>
© {new Date().getFullYear()} {site.brand.legalName}
<span aria-hidden="true"> · </span>
<a class="footer-icp" href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">湘ICP备2026032239号-1</a>
</p>
<p>网站展示价格与服务以实际门店沟通为准</p>
</div>
</footer>
src/styles/global.css
View file @
28d3cf79
...
...
@@ -348,6 +348,8 @@ h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; lin
.footer-arrow
{
margin-top
:
22px
!important
;
color
:
#fff
;
}
.footer-bottom
{
display
:
flex
;
justify-content
:
space-between
;
gap
:
30px
;
padding
:
22px
0
;
border-top
:
1px
solid
rgba
(
255
,
255
,
255
,
.1
);
color
:
#827871
;
font-size
:
11px
;
}
.footer-bottom
p
{
margin
:
0
;
}
.footer-icp
{
transition
:
color
.2s
ease
;
}
.footer-icp
:hover
{
color
:
var
(
--gold
);
}
@media
(
max-width
:
1080px
)
{
.desktop-nav
,
.header-cta
{
display
:
none
;
}
...
...
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