docsify vercel部署
Last updated on November 22, 2024 pm
🧙 Questions
提交github代码,自动部署到服务器
☄️ Ideas
前提
配置github action
提前在服务器中创建
/data/spark-star/
文件夹
vim .github/workflows/website.yml
name: deploy website
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: copy file via ssh password
uses: appleboy/scp-action@master
with:
host: isxcode.com
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
rm: true
source: "./docs"
target: "/data/spark-star/"
修改nginx配置
server {
listen 80;
listen [::]:80;
server_name spark-star.isxcode.com;
location / {
root /data/spark-star/docs;
index index.html;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name flink-acorn.isxcode.com;
ssl_certificate "/data/ssl/spark-star.isxcode.com/full_chain.pem";
ssl_certificate_key "/data/ssl/spark-star.isxcode.com/private.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
location / {
root /data/flink-acorn/docs;
index index.html;
}
}
🔗 Links
docsify vercel部署
https://ispong.isxcode.com/github/docsify/docsify vercel部署/