Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
J
jiayun
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
jiayun
Commits
b6426fcf
Commit
b6426fcf
authored
Aug 07, 2026
by
xuchentao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: enable production domain HTTPS
parent
a7bff406
Pipeline
#463
failed with stage
in 21 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
9 deletions
+22
-9
.gitlab-ci.yml
.gitlab-ci.yml
+3
-3
astro.config.mjs
astro.config.mjs
+1
-1
jiayun.conf
deploy/nginx/jiayun.conf
+15
-2
robots.txt
public/robots.txt
+1
-1
llms-full.txt.ts
src/pages/llms-full.txt.ts
+1
-1
llms.txt.ts
src/pages/llms.txt.ts
+1
-1
No files found.
.gitlab-ci.yml
View file @
b6426fcf
...
...
@@ -9,7 +9,7 @@ variables:
PM2_BIN
:
"
/usr/bin/pm2"
PM2_HOME_DIR
:
"
/root/.pm2"
PM2_USE_SUDO
:
"
1"
PUBLIC_HOST
:
"
jiayun
.101-126-10-129.sslip.io
"
PUBLIC_HOST
:
"
jiayun
wangyueche.com
"
stages
:
-
deploy
...
...
@@ -51,7 +51,7 @@ deploy:
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
--
resolve "$PUBLIC_HOST:443:127.0.0.1
" \
"https://$PUBLIC_HOST/"
>/dev/null
echo "[deploy] 部署与公网入口验证完成"
astro.config.mjs
View file @
b6426fcf
...
...
@@ -6,7 +6,7 @@ import path from "node:path";
const
customOutDir
=
process
.
env
.
JIAYUN_BUILD_OUT_DIR
;
export
default
defineConfig
({
site
:
"http
://jiayun.101-126-10-129.sslip.io
"
,
site
:
"http
s://jiayunwangyueche.com
"
,
integrations
:
[
sitemap
({
filter
:
(
page
)
=>
!
page
.
includes
(
"/admin/"
)
&&
!
page
.
includes
(
"/api/"
)
})],
adapter
:
node
({
mode
:
"standalone"
}),
...(
customOutDir
?
{
outDir
:
path
.
resolve
(
customOutDir
)
}
:
{}),
...
...
deploy/nginx/jiayun.conf
View file @
b6426fcf
# 嘉运网约车官网 Nginx 配置
#
通过服务器 IP 的 80 端口访问,反向代理到
本机 8790 端口。
#
HTTP 入口跳转到正式域名的 HTTPS,应用服务监听
本机 8790 端口。
server
{
listen
80
;
server_name
101
.
126
.
10
.
129
;
server_name
jiayunwangyueche
.
com
;
return
301
https
://
jiayunwangyueche
.
com
$
request_uri
;
}
server
{
listen
443
ssl
http2
;
server_name
jiayunwangyueche
.
com
;
ssl_certificate
/
etc
/
nginx
/
certs
/
jiayunwangyueche
.
com
.
fullchain
.
pem
;
ssl_certificate_key
/
etc
/
nginx
/
certs
/
jiayunwangyueche
.
com
.
certkey
.
pem
;
ssl_protocols
TLSv1
.
2
TLSv1
.
3
;
ssl_session_cache
shared
:
SSL
:
10
m
;
ssl_session_timeout
10
m
;
# 图片上限为 20MB,JSON 中的 Base64 数据会额外增大请求体。
client_max_body_size
28
m
;
...
...
public/robots.txt
View file @
b6426fcf
...
...
@@ -14,4 +14,4 @@ Allow: /
Disallow: /admin/
Disallow: /api/
Sitemap: http
://jiayun.101-126-10-129.sslip.io
/sitemap-index.xml
Sitemap: http
s://jiayunwangyueche.com
/sitemap-index.xml
src/pages/llms-full.txt.ts
View file @
b6426fcf
...
...
@@ -5,7 +5,7 @@ import { getPublishedArticles } from "../lib/articles";
export
const
prerender
=
true
;
export
const
GET
:
APIRoute
=
async
({
site
:
siteUrl
})
=>
{
const
base
=
(
siteUrl
?.
href
||
"http
://jiayun.101-126-10-129.sslip.io
/"
).
replace
(
/
\/
$/
,
""
);
const
base
=
(
siteUrl
?.
href
||
"http
s://jiayunwangyueche.com
/"
).
replace
(
/
\/
$/
,
""
);
const
articles
=
await
getPublishedArticles
();
const
pages
=
[
[
`首页`
,
"/"
],
[
`服务方案`
,
"/services/"
],
[
`司机招募`
,
"/join/"
],
...
...
src/pages/llms.txt.ts
View file @
b6426fcf
...
...
@@ -2,7 +2,7 @@ import type { APIRoute } from "astro";
import
{
site
}
from
"../data/site"
;
export
const
prerender
=
true
;
export
const
GET
:
APIRoute
=
({
site
:
siteUrl
})
=>
{
const
base
=
(
siteUrl
?.
href
||
"http
://jiayun.101-126-10-129.sslip.io
/"
).
replace
(
/
\/
$/
,
""
);
const
base
=
(
siteUrl
?.
href
||
"http
s://jiayunwangyueche.com
/"
).
replace
(
/
\/
$/
,
""
);
const
body
=
`#
${
site
.
brand
.
name
}
\n\n>
${
site
.
brand
.
tagline
}
\n\n
${
site
.
home
.
subhead
}
\n\n## 核心服务\n
${
site
.
services
.
map
((
item
)
=>
`-
${
item
.
name
}
:
${
item
.
intro
}
`
).
join
(
"
\n
"
)}
\n\n## 联系方式\n- 电话:
${
site
.
contact
.
phone
}
\n- 地址:
${
site
.
contact
.
address
}
\n- 服务时间:
${
site
.
contact
.
serviceHours
}
\n\n## 重要页面\n- 完整 AI 资料:
${
base
}
/llms-full.txt\n- 首页:
${
base
}
/\n- 服务方案:
${
base
}
/services/\n- 司机招募:
${
base
}
/join/\n- 资讯中心:
${
base
}
/articles/\n- 关于嘉运:
${
base
}
/about/\n- 常见问题:
${
base
}
/faq/\n- 联系我们:
${
base
}
/contact/\n\n## 信息边界\n- 平台规则、准入条件、车型价格与优惠政策以实时信息为准。\n- 嘉运不对网约车营收作绝对承诺。\n`
;
return
new
Response
(
body
,
{
headers
:
{
"Content-Type"
:
"text/plain; charset=utf-8"
}
});
};
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