Skip to content

Commit 97d83a9

Browse files
committed
make VPN optional in deployment
1 parent 692b036 commit 97d83a9

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/docs-local.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,19 @@ jobs:
7474
- name: Checkout repo
7575
uses: actions/checkout@v4
7676
- name: Install OpenVPN
77+
if: ${{ secrets.NO_VPN != 'true' }}
7778
run: |
7879
sudo apt update
7980
sudo apt install -y openvpn openvpn-systemd-resolved
8081
- name: Touch OVPN client-config file
82+
if: ${{ secrets.NO_VPN != 'true' }}
8183
run: touch client.ovpn
8284
- name: Fill OVPN client-config file
85+
if: ${{ secrets.NO_VPN != 'true' }}
8386
run: |
8487
echo "${{ secrets.VPN_OVPN_FILE }}" >> client.ovpn
8588
- name: Connect to VPN 🔓
89+
if: ${{ secrets.NO_VPN != 'true' }}
8690
uses: "kota65535/github-openvpn-connect-action@v3"
8791
with:
8892
config_file: client.ovpn

docs-building.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ To build, there is a Github action in this repository, but in order to configure
4242
| PORT | -> `.env`<br>The port your web-server will be accessible when started later on (for example: `8080`).<br>This variable will be written to a newly generated `.env` file that will reside in the root-directory of the node web-server.<br>So that port is INSIDE this web-servers' docker-image that is created. |
4343
| WEBSERVER_PORT | This is the EXTERNAL port of the web-server that is created.<br>This port must be unique and accessible on the deployment-machine. |
4444
| AUTOSCAN | Starts a file-watcher on the markdown-directory on the server so that all changes within that folder will trigger a re-scan of all files available to the server. This only makes sense, if you plan on changing content without re-starting (-building). That would be the case when you're debugging, or if you're running a WYSIWYG docker-container of the server locally. |
45+
| NO_VPN | Set to 'true' if you'd like to skip the VPN-setup entirely. This is useful, if your SSH-access isn't hidden behind an OpenVPN. Defaults to '' and thus is false per default). |
4546
| VPN_OVPN_FILE | The OVPN file of your Open VPN configuration. This is used to reach the deployment-server (target host) to start conversation via SSH. |
4647
| VPN_PASSWORD | The password of your VPN connection. |
4748
| VPN_SERVER | The server to call for opening your VPN connection. |

0 commit comments

Comments
 (0)