mirror of
https://github.com/Colin-XKL/Colinx-Blog.git
synced 2026-03-08 05:01:27 +08:00
Compare commits
1 Commits
7ce27ad81c
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a072dbd225 |
2
.github/workflows/CDN-URL.yaml
vendored
2
.github/workflows/CDN-URL.yaml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Find and Replace Release
|
- name: Find and Replace Release
|
||||||
uses: jacobtomlinson/gha-find-replace@2.0.0
|
uses: jacobtomlinson/gha-find-replace@2.0.0
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build and Deploy Job
|
name: Build and Deploy Job
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Build And Deploy
|
- name: Build And Deploy
|
||||||
|
|||||||
2
.github/workflows/gh-pages.yml
vendored
2
.github/workflows/gh-pages.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
|||||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \
|
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \
|
||||||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
|
|||||||
2
.github/workflows/text-lint.yml
vendored
2
.github/workflows/text-lint.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: huacnlee.autocorrect
|
- name: huacnlee.autocorrect
|
||||||
uses: huacnlee/autocorrect-action@v2.10.0
|
uses: huacnlee/autocorrect-action@v2.10.0
|
||||||
|
|||||||
@@ -320,19 +320,6 @@ Status for the jail: sshd
|
|||||||
`- Banned IP list: 154.216.19.42
|
`- Banned IP list: 154.216.19.42
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2.7 Git 代理
|
|
||||||
一般在 `.bashrc`/`.zshrc` 中定义 `HTTP_PROXY` / `HTTPS_PROXY` 可以应对大部分场景。但是对于使用 ssh 协议的 git 仓库 (通过 ssh 方式,相较于 https 的不用每次输用户名和密码。一般对只有克隆公共仓库的时候才会用 https, 其他时候对于自己的仓库我都是用 ssh), 并不会走 http 代理。
|
|
||||||
|
|
||||||
这里需要在 ssh config 中配置转发走代理才行。使用`nc`(macOS 等默认会预装) 搭配 socks 代理最方便
|
|
||||||
|
|
||||||
```ini
|
|
||||||
Host github.com
|
|
||||||
HostName github.com
|
|
||||||
User git
|
|
||||||
Port 22
|
|
||||||
ProxyCommand nc -x 192.168.100.222:8085 %h %p
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## 3 - 进阶内容
|
## 3 - 进阶内容
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user